Article View: borland.public.cppbuilder.nativeapi
Article #1374Re: UTF-8 to curent locale
From: Asger Jorgensen
Date: Mon, 10 Sep 2007 14:58
Date: Mon, 10 Sep 2007 14:58
22 lines
1774 bytes
1774 bytes
Hi Darko Thanks for Your answer In article <46e54543@newsgroups.borland.com>, kiklop@fibertel.com.ar says... > There is no need for API. VCL offers function Utf8ToAnsi in system unit > (that is in BDS 2006). If you have older version of BCB than you can use > two api's to accomplish this conversion: I only have BCB5 pro > > MultiByteToWideChar - this one converts multibyte string to unicode > WideCharToMultiByte - this one can convert unicode to ansi > > So with MultiByteToWideChar convert utf-8 to unicode and than with > WideCharToMultiByte convert that unicode to ansi string. Is there realy no function that translate UTF-8 to good old ascii in one pass ?? I would very much like it to be fast. Thanks in advance Asger
Technical Details
Message-ID:
<MPG.214f7a08942d25809897e5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<MPG.214e8e1e8b10f7259897e4@newsgroups.borland.com> <46e54543@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1467a6fdb7f4c516 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Asger Jorgensen <Junk@Asger-P.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: UTF-8 to curent locale Date: Mon, 10 Sep 2007 16:58:41 +0200 Message-ID: <MPG.214f7a08942d25809897e5@newsgroups.borland.com> References: <MPG.214e8e1e8b10f7259897e4@newsgroups.borland.com> <46e54543@newsgroups.borland.com> Organization: Asger-P MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 NNTP-Posting-Host: 83.73.213.92 X-Trace: newsgroups.borland.com 1189436386 83.73.213.92 (10 Sep 2007 07:59:46 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail