[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: CODEPAGE question

Status
Not open for further replies.
F

frank.meulblok

Guest
The "codepage-convert('Ä','UTF-8',session:cpinternal)" gives mojibake instead of the expected 'Ä', and has more bytes than expected. So in that case there's a double conversion - the character gets converted from single-byte ISO codepage to a multibyte UTF-8 sequence, then the invidual bytes of the UTF-8 sequence get interpreted as single-byte characters and converted again. The double conversion is probably because when you fix-codepage your longchars, there is an automatic codepage conversion that takes effect. (Rules are buried in the docs on the ASSIGN statement) -> that automatic conversion happens on top of the explicit conversion you have in the code.

Continue reading...
 
Status
Not open for further replies.
Top