[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Capturing and storing Chinese into progress DB

Status
Not open for further replies.
T

Torben

Guest
In older versions I think the Progress execuptables used single byte code page internally. This changes with 10.? where the internal code page is multi-byte. ((NOT CPINTERNAL! and think it uses utf-8) So when using 8 bit character code page conversion happens from screen to internal and back from internal to screen. (Fx € symbol) If the characters are not valid in the conversion tables, then the iso8859-1 conversion between screen and internal (utf-8) will fail. Running MESSAGE CODEPAGE-CONVERT(CODEPAGE-CONVERT("€", "iso8859-1", "utf-8"), "utf-8", "iso8859-1") SKIP CODEPAGE-CONVERT(CODEPAGE-CONVERT("€", "iso8859-15", "utf-8"), "utf-8", "iso8859-15") SKIP ASC("€") SKIP CODEPAGE-CONVERT(CODEPAGE-CONVERT("出", "iso8859-1", "utf-8"), "utf-8", "iso8859-1") SKIP CODEPAGE-CONVERT(CODEPAGE-CONVERT("出", "iso8859-15", "utf-8"), "utf-8", "iso8859-15") SKIP ASC("出"). with -cpinternal utf-8 following gives: ? € 14844588 ? ? 15042490

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