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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel