Kbase P177928: combo-box values with extended characters are truncated with utf-8 client
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  05/04/2011 |
|
Status: Unverified
SYMPTOM(s):
Combo values with extended characters are truncated with utf-8 client
If a FORMAT phrase is specified for a combo box, then that format seems to specify bytes and not columns or characters.
If multi byte UTF-8 single column data is entered into a combo-box, then the data can be truncated since the byte length is longer than the column length.
For example:
DEFINE VARIABLE c1 AS CHARACTER format "X(4)" view-as combo-box NO-UNDO.
DEFINE FRAME F1 C1 with width 30.
c1:ADD-FIRST("öööö").
C1:SCREEN-VALUE = "öööö".
display c1 WITH FRAME F1.
MESSAGE "RAW Length : " length(c1:screen-value,"RAW") skip
"COLUMN Length : " length(c1:screen-value,"COLUMN") skip
"CHARACTER Length : " length(c1:screen-value,"CHARACTER") skip
VIEW-AS ALERT-BOX INFO BUTTONS OK.
FACT(s) (Environment):
The code is being run in the UTF-8 client.
Windows
OpenEdge 10.x
CAUSE:
Bug# OE00202415
FIX:
Upgrade to OpenEdge 10.2B04 or later.
Alternatively as a work around, increase the format of the combo box to the number of bytes in the string to be displayed. For example in this case:
DEFINE VARIABLE c1 AS CHARACTER format "X(8)" view-as combo-box NO-UNDO.