TWideMemoFields displayed with wrong characters
Posted: Mon 28 Sep 2009 14:54
Hi,
I tried to set the UseUnicode option to True and convert my TStringFields and TMemoFields to TWideStringField and TWideMemoField with the ftWideMemo option.
Everything is Ok with the TWideString Fields, but the TWideMemoFields are being displayed with incorrect characters (a lot of japanese/chinese chars actually).
I'm using Firebird 2.1 with the Win1252 charset on the database and Delphi 2009.
Also, if I set UseUnicode = True and then add a TMemoField with ftMemo, then some chars are displayed incorrectly, example: ã is displayed as ã.
If I'm not mistaken, the correct way to use everything as unicode is to convert all the fields to the "TWide" types, is it correct?
Is there something I can do to fix this?
Thanks.
I tried to set the UseUnicode option to True and convert my TStringFields and TMemoFields to TWideStringField and TWideMemoField with the ftWideMemo option.
Everything is Ok with the TWideString Fields, but the TWideMemoFields are being displayed with incorrect characters (a lot of japanese/chinese chars actually).
I'm using Firebird 2.1 with the Win1252 charset on the database and Delphi 2009.
Also, if I set UseUnicode = True and then add a TMemoField with ftMemo, then some chars are displayed incorrectly, example: ã is displayed as ã.
If I'm not mistaken, the correct way to use everything as unicode is to convert all the fields to the "TWide" types, is it correct?
Is there something I can do to fix this?
Thanks.