On 03/07/15 09:28, liviusliv...@poczta.onet.pl wrote:

>
> I've not been following FB3 stuff closely but I'm assuming the
> API will be working with UTF-8 strings.

That's not exactly correct. Firebird is using OS support to convert from 
OS default encoding to UTF-8. One can use utf8 strings, but to do it 
special ag should be added to DPB/SPB. I'm not sure how do windows 
functions MultiByteToWideChar & WideCharToMultiByte treat CP_ACP, 
particularly can it result in different encoding for different apps on 
same box. If yes - firebird API is ready to provide both Delphi and 
FreePascal support, we should care just about correctly declaring string 
types in include file for pascal. Bytes in them will be internally 
converted to needed form. BTW, environment variables are expected to be 
in same encoding too.

> provide both Delphi and FreePascal support in example code will
> need to take care to use specific types, like UTF8String rather
> than just String.  And PAnsiChar and AnsiChar for the string
> elements.



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to