Kbase P105317: Euro sign does not display correctly after converting to UTF-8
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/06/2005 |
|
Status: Unverified
SYMPTOM(s):
Euro sign does not display correctly after converting to UTF-8
Using CODEPAGE-CONVERT with SESSION:CPINTERNAL to convert the Euro sign to UTF-8 results in incorrect characters.
The converted UTF-8 byte sequence is 0xC2 0x80 (194 128).
CAUSE:
The CODEPAGE-CONVERT statement was used as:
CODEPAGE-CONVERT(CHR(128),"UTF-8", SESSION:CPINTERNAL)
The session CPINTERNAL parameter is set to the wrong code page. In this case CPINTERNAL is set to iso8859-1 and this code page does not support the Euro symbol.
FIX:
Use a code page that supports the Euro. For a Western Windows client use 1252, or for a Western UNIX client use iso8859-15.