Kbase P179768: SUBSTRING function no longer works with Chinese language
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/03/2011 |
|
Status: Verified
SYMPTOM(s):
SUBSTRING function no longer works with Chinese language
The value returned by the SUBSTRING function is not the one expected.
The statement:
cVariable = SUBSTRING ( source , position , length , "COLUMN" )
assigns to cVariable a string wider than expected.
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1x
OpenEdge 10.2x
CAUSE:
There is not a problem with the SUBSTRING function and the Chinese characters. The behavior is correct. Chinese characters are "wide" or "double-width" characters, meaning they each occupy 2 columns.
FIX:
Format output to allow two columns for wide characters.