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

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



Hi Scott,

Thanks. I did the following with the program CHARDATA1: 
Had to to change stmt. 12.00 to 13.00 too

0002.00 H*CCSID(*UCS2:1200)                                                 
..
0010.00 D start           PR                                                
0011.00 D   data                          *   value                         
0012.00 D*  elem                     16383C   options(*varsize) CCSID(1200) 
0013.00 D   elem                     16383C   options(*varsize)             

Ran a debug with the program.....
The print result IMO.... is too much 'noisy' - an older version of Expat handled it better ???

Print from the program: CHARDATA1
 invoice id="54-12343"       
 Char:                       
 Char:                       
  ShipTo                     
  Char:                      
  Char:                      
   name                      
   Char: Scott Klement       
  Char:                      
  Char:                      
   address type="residence"  
   Char:                     
   Char:                     
    addrLine1                
    Char: 123 Sesame St      
   Char:                     
   Char:                     
    city                     
    Char: New York (and some more lines.......)

Changed the program VARDEMO1 too.... the print looks better:
elemName = Cust                   
attrName = number attrVal = 1234  
elemName = name                   
chardata = Acme, Inc.             
end of element name               
elemName = balance                
chardata = 123.45                 
end of element balance            
end of element Cust            

Best regards,
Leif
----- Original Message ----- 
From: "Scott Klement" <klemscot@xxxxxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: 12. september 2007 18:19
Subject: Re: Expat v. 2.0.0 - error with CCSID conversion (OS/400 V5R1)


Hi Leif,

On the H-spec for VARDEMO1 it says:

  H CCSID(*UCS2:1200)

Please remove that CCSID keyword (and it's parameters) completely from 
your H-spec.  I suspect that CCSID 1200 (which is UTF-16) isn't 
supported on V5R1.  Remove that keyword and it'll fall back to using 
UCS-2, which hopefully won't give you this error.


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