Article View: borland.public.cppbuilder.internationalization
Article #18Re: What is the different between AnsiString and UTF8String?
From: Igor Siticov
Date: Mon, 15 Jan 2007 17:25
Date: Mon, 15 Jan 2007 17:25
22 lines
1890 bytes
1890 bytes
Hi, > What do you mean encoded? As far as I see they are both encoded. > IMHO! Utf8String is encoded but AnsiString is "as is" string. AnsiString is single byte string and will be displayed properly only while using proper code page. MBCS strings are multi-byte and they apply to all you wrote below. But AnsiString is "plain" single-byte string and this is why they will look differently under different code pages because there is no codepage info in single-byte data just char itself (for some Asian codepages there will be needed 2 bytes to decode one single char but there still no any code page info in AnsiString). I think you mixed in your post byte and bit. Most significant BIT describes the character "range". -- Best regards. TsiLang Components Suite - Best Globalization Tool 2004 http://www.tsilang.com
Technical Details
Message-ID:
<45abbac7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45a29580@newsgroups.borland.com> <45a4a963@newsgroups.borland.com> <45a602a3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,df1e44fdeda5937e X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Igor Siticov" <support@sicomponents.com> Newsgroups: borland.public.cppbuilder.internationalization References: <45a29580@newsgroups.borland.com> <45a4a963@newsgroups.borland.com> <45a602a3$1@newsgroups.borland.com> Subject: Re: What is the different between AnsiString and UTF8String? Date: Mon, 15 Jan 2007 20:25:23 +0300 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 81.25.53.74 Message-ID: <45abbac7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1168882375 81.25.53.74 (15 Jan 2007 09:32:55 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail