Hi all,

I see that many classes and functions are not using widestring. So i
must understand that all these are not UTF8 capable? (If I understand
UTF8, widestring would not support UTF16?).

Ok, when coding a procedure reading files (LoadFromStream/File) should
I always use widestring and then try guess if it is only normal
ansistring and if you convert ansistring to widestring in order to use
the functions?

Or do we have to always code 2 times the same function: one with wide
string, the other not. The goal of my question is to avoid coding two
times the same stuff (even if this is copy-paste, you need to maintain
the code).

Right now I code for window; no UTF8 problems for now :) But I want my
app to run under linux.
1. how do I detect UTF8/Ainsi files? Is this possible? (I talk about
text files for now).
2. what is a #32 char in widechar? #xx#32? (I do comparisons like 'if
pchar = #32 then'... I don't know how to translate this.
3. in TStringList.LoadFromStream... there are no widestring... how
could a widestring version be done so that LoadFromStream(ansi) would
call after convertion (?) to wide string LoadFromStream(widestring)?

(In fact I'm asking all this to start coding for the future right now.)

Best regards.

--
Alexandre Leclerc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to