[fpc-pascal] RTL and Unicode Strings

LacaK lacak at zoznam.sk
Wed May 11 10:03:59 CEST 2016


>
>
> How the sqldb package handles this point?

sqlDB does not perform any character translation.
Only stores data in record buffers as they arrive.
So it expects, that programmer is aware of that and sets correct 
"connection encoding".
In case of Lazarus it is often UTF-8, because Lazarus expects that 
character data are UTF-8 encoded (at least it was so).
So user programmer must set connection encoding to UTF-8 then data 
arrive utf-8 encoded and sqlDB only stores them and forwards them to for 
example data-aware controls for displaying.
-Laco.




More information about the fpc-pascal mailing list