From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,39bba31d32872db6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada and UTF-8 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <7eb5ab14.0504271405.6468bd7e@posting.google.com> Date: Thu, 28 Apr 2005 09:31:28 +0200 Message-ID: <1r1hpnavzhxg4.maeuv5w3wv52$.dlg@40tude.net> NNTP-Posting-Date: 28 Apr 2005 09:31:28 MEST NNTP-Posting-Host: f0b632da.newsread2.arcor-online.net X-Trace: DXC==AnC9Cl=ik6E][lTbkER26Q5U85hF6f;4jW\KbG]kaM8:cmYYm_h3\3ZF`nMKV:7I0WRXZ37ga[7:n919Q4_`Vj9B8=X\UUgbk4 X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10776 Date: 2005-04-28T09:31:28+02:00 List-Id: On 27 Apr 2005 15:05:26 -0700, skylendar wrote: > An iso8859-1 ascii string can easily be converted into a Wide_String > with the function To_Wide_String(). > > But I need to retrieve the UTF-8 image of such a Wide_String, and I > don't know how to do that. > > Example: > > W : Wide_String := To_Wide_String("accented characters ������"); > > then > > S : String := xxx(W); > > so that S would contains : "accented characters ééààèè" http://www.dmitry-kazakov.de/ada/strings_edit.htm with Strings_Edit.UTF8.Handling; use Strings_Edit.UTF8.Handling; ... S : String := To_UTF8 (W); -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de