[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Expat v. 2.0.0 - error with CCSID conversion (OS/400 V5R1)



FYI:

EXPAT (LIBEXPAT) OS/400 V5R1 (Cum C3343510)

ERROR testing the demoprograms CHARDATA1, CHARDATA2 and VARDEMO1 


Conversion between CCSID(1200) and CCSID(0) is not supported.     
Funktionskontrol. RNX0451 overvåges ikke af CHARDATA1 ved udtryk  
  0000001954, instruktion X'0000'.                                
The call to XML_Parse ended in error (C G D F).                   
The call to XML_Parse ended in error (C G D F).  


As you can see, my job contains CCSID 277
Job:   WIN5250B1      Bruger:   LEGUAR         Nummer:   011749
                                                               
Format for print-tast . . . . . . . . . . . . . . :   *PRTHDR  
Sorteringstabel . . . . . . . . . . . . . . . . . :   *HEX     
  Bibliotek . . . . . . . . . . . . . . . . . . . :            
Sprog-ID  . . . . . . . . . . . . . . . . . . . . :   DAN      
Lande-ID  . . . . . . . . . . . . . . . . . . . . :   DK       
CCSID (kode for tegnsæt-ID) . . . . . . . . . . . :   277      
Standard-CCSID  . . . . . . . . . . . . . . . . . :   277      

The testfile (/tmp/testdoc.xml) has a CCSID of 1252



The demoprogram: VARDEMO1 has the same problem (last line)
from a debug.
                                                      Display Module Source   
                                                                              
Program:   VARDEMO1       Library:   LIBEXPAT       Module:   VARDEMO1        
   434        433 D XMLdata         s            200C                         
   435        434 D len             s             10I 0                       
   436        435  /free                                                      
   437        436                                                             
   438        437     XMLdata = %UCS2(                                        
   439        438       '<?xml version="1.0" encoding="UTF-16"?>'             
   440        439     + '<Cust number="1234">'                                
   441        440     +    '<name>Acme, Inc.</name>'                          
   442        441     +    '<balance>123.45</balance>'                        
   443        442     + '</Cust>' );                                          
   444        443                                                             
   445        444     len = %len(%trimr(XMLDATA)) * 2;                        
   446        445                                                             
   447        446     parser = XML_ParserCreate(*OMIT);                       
   448        447                                                             
   449        448     XML_SetStartElementHandler (parser: %paddr(start)   );  
   450        449     XML_SetEndElementHandler   (parser: %paddr(end)     );  
   451        450     XML_SetCharacterDataHandler(parser: %paddr(chardata));  
                                                                              
Debug . . .                                                                   
                                                                              
F3=End program   F6=Add/Clear breakpoint   F9=Retrieve   F10=Step   F11=Displa
F15=Select view   F16=Repeat find   F17=Watch variable   F18=Work with watch  
Conversion between CCSID(0) and CCSID(1200) is not supported.


call vardemo1                                                
Conversion between CCSID(0) and CCSID(1200) is not supported.
Conversion between CCSID(0) and CCSID(1200) is not supported.
Unmonitored exception at line 438

Best regards,
Leif                            

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------