[fpc-devel] Unicodestring branch, please test and help fixing
JoshyFun
joshyfun at gmail.com
Thu Sep 11 19:52:07 CEST 2008
Hello ABorka,
Thursday, September 11, 2008, 7:26:50 PM, you wrote:
A> The database field can contain any string with '®' in it for this to happen
A> for example: 'sometext®'
A> It seems that
A> ListBox1.Items.Add(SQL1.FieldByName('MyTableField').AsString);
[...]
A> will only put an empty string into the Listbox.
A> Somewhere inside FCL, where the Listbox item is inserted there is a
A> UTF8Decode which ends up with the empty string because of the '®' #174
A> character it thinks that it is a unicode encoded character and tries to
A> get the additional bytes for it which ain't there.
http://bugs.freepascal.org/view.php?id=11791
A> Not sure how can this be circumvented (using some conversion function?)
A> or if it is a bug.
Check Lazarus list, there is a quite recent thread about that "Unicode
and DBAware" (is the text of the subject).
--
Best regards,
JoshyFun
More information about the fpc-devel
mailing list