calc field unicode problem

Kent Tong

Member
Hi,

After assigning some Chinese characters to it, the calc field will get a value of empty. Please check the screenshot for a test case: s1 will end up as empty while s2 will work fine.

Screenshot:
view
 
Hi, Marco

Thanks! You can use the following strings for testing:

Code:
s1 := '#19968#20108#19977';
s2 := '#20844#21209#21729';

The first will get converted as to an empty string when it is assigned to a TWideStringField calculated field:

Code:
mycalcField1.AsWideString := s1;
if mycalcField1.AsWideString <> s1 then
   ShowMessage('changed!');

Many thanks!
 
Last edited:
Back
Top