[fpc-pascal] Delphi / FPC and UTF8 BOM
Zaher Dirkey
parmaja at gmail.com
Thu Oct 23 16:55:58 CEST 2008
1 - I understand the mixed as
Unit1 have class A with string variables/functions (but it will
compiled as AnsiString)
Unit2 have class B inherited from the A but this unit2 but now passing
directive to compile it with the strings as WideString, it must not
compiled correct? (bad english)
2 -
What if i have i loaded a utf file to TStringList then i want to
process the strings as utf-8 and pass it to my functions(P:widestring)
without convert from ansi to wide because already have unicode chars.
A:String
B:AnsiString
C:WideString
B:=C;//here must convert from Wide To Ansi
B:=A;//as an options in compiling must not convert
B:=WideToAnsi(A);here must convert from Wide To Ansi
I think the answer is above done
>In Lazarus we consider that the best solution is storing utf-8 data in
>ansistrings for a series of reason, but the fpc team didn't agree.
More information about the fpc-pascal
mailing list