[fpc-devel] TField.AsString and Databases with UTF-8 charset

Graeme Geldenhuys graemeg at opensoft.homeip.net
Fri Jul 24 16:18:44 CEST 2009


Martin Schreiber wrote:
>> 
>> As a consequence, my prediction is that, because it reports a size
>> in characters, the postgres implementation will suffer of buffer
>> overflows as soon as strange (=multibyte) unicode characters are
> ....
>> 
> Correct.

On a quick test, but via tiOPF, it seems to clip the UTF-8 text, but 
doesn't throw an error. My unit tests detected the mistake though. But I 
need a cleaner test that *only* uses SqlDB, which I will do next.


> Graeme will not accept it because he wants to use ancient Greek and
> Klingon AFAIK. ;-)

You remembered!  :-)


Regards,
   - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list