UTF-8 issue - decreased length

8 views
Skip to first unread message

Mohamed Rassaa

unread,
Jan 14, 2016, 2:05:21 PM1/14/16
to legstar-user
Hi all,

I have an issue linked to LegStar and UTF-8 encoding :
I have an input file (XML file) with UTF-8 encoding and I want to generate an output file (TXT file) with UTF-8 encoding too passed by java code generated by LegStar.
It's OK except for fields with accented characters values. For this case, I have one shift by accented character even if it's the same encoding. The length of value fields are decreased due to accented characters.
Here is an example :
Input field : "Marie-José"
Output Field (must be 38 characters) : "Marie-José                           " (37 characters, not 38)
My copycobol :
05 XILAXACN-PRN                               PIC X(38)

I have the same problem with the others fields when I have accented characters in the values.
I check my java code generated by LegStar : the lengths are OK.


Did you see the same kind of this issue before ?

Thank you for your help and sorry for my bad english.

Mohamed
Reply all
Reply to author
Forward
0 new messages