Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-21 Thread Oro06
interesting articles about strings under windows ,discussing also about BSTR (not refcounted) strings, afair win32 and win64 fpc rtl moved to BSTR (not sure) http://www.codeproject.com/string/cppstringguide1.asp and http://www.codeproject.com/string/cppstringguide2.asp?print=true may be it can

Re: Re[2]: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Graeme Geldenhuys
Thank you very much to everybody that replied and helped me understand this topic. Your emails really helped a lot. Regards, - Graeme - _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject

Re[2]: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Sergei Gorelkin
Graeme Geldenhuys wrote: GG> Now this brings me to another point which makes no sense! Naming GG> convertion of functions. GG> Lets look at the following RTL function as an example: GG> * StrPos is used for 1 byte (8 bit) ANSI strings. GG> * AnsiStrPos is used for multi-byte (or is that 2 bytes

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Marc Weustink
Graeme Geldenhuys wrote: Thanks Marc, It was a real informative explanation, and helped a lot. Now lets see if I understood it correctly. :-) AnsiStrings are 1 byte wide and WideStrings are 2 byte wide. Fixed. The delphi WideStrings are the same as used by MS in their Wide functions, being UC

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Graeme Geldenhuys
On 20/10/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: I think you are still a bit confused. I am sure, but I think it is as follows. UTF-8 strings are stored in ansistrings. UTF-16 are stored in widestrings. both UTF-8 and UTF-16 are unicode strings. You are right, when I look at the follo

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Vincent Snijders
Graeme Geldenhuys schreef: Thanks Marc, It was a real informative explanation, and helped a lot. Now lets see if I understood it correctly. :-) AnsiStrings are 1 byte wide and WideStrings are 2 byte wide. Fixed. The delphi WideStrings are the same as used by MS in their Wide functions, being

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Graeme Geldenhuys
Thanks Marc, It was a real informative explanation, and helped a lot. Now lets see if I understood it correctly. :-) AnsiStrings are 1 byte wide and WideStrings are 2 byte wide. Fixed. The delphi WideStrings are the same as used by MS in their Wide functions, being UCS-2 initially. So all unic

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Borut Maricic
Marc told you the most important things. These are also to be found here (formulated in a very similar, hopefully also precise way): http://wiki.lazarus.freepascal.org/LCL_Unicode_Support#Unicode_essentials _ To unsubscribe: m

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread ik
On 10/20/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: Ok, I'll start up front by announcing my ignorance on these two items: UTF-8 and Unicode. After reading some discussions of implementing Unicode/UTF-8 support in Lazarus I thought I would ask. Could someone give the watered down explanat

Re: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Marc Weustink
Graeme Geldenhuys wrote: Ok, I'll start up front by announcing my ignorance on these two items: UTF-8 and Unicode. After reading some discussions of implementing Unicode/UTF-8 support in Lazarus I thought I would ask. Could someone give the watered down explanation to me (and probably others t

[lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Graeme Geldenhuys
Ok, I'll start up front by announcing my ignorance on these two items: UTF-8 and Unicode. After reading some discussions of implementing Unicode/UTF-8 support in Lazarus I thought I would ask. Could someone give the watered down explanation to me (and probably others too)? My mind is trying to