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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,39bba31d32872db6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 28 Apr 2005 00:52:06 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Debian/1.7.6-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada and UTF-8 References: <7eb5ab14.0504271405.6468bd7e@posting.google.com> In-Reply-To: <7eb5ab14.0504271405.6468bd7e@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42701787$0$10508$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 28 Apr 2005 00:51:51 MEST NNTP-Posting-Host: 3e14a974.newsread4.arcor-online.net X-Trace: DXC=T\]OK7@?:mlci]h2U0KHce:ejgIfPPlddjW\KbG]kaMhliQbn6H@_EiJkkRih[6:=P9Ihe`Bh@Z?dZ]MOide X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10761 Date: 2005-04-28T00:51:51+02:00 List-Id: 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. This should become available with more recent compilers. Ada 2005 supports UTF-8 via ISO 10646. Meanwhile you can find implementations of Wide_String to UTF-8 String in the GNAT sources, in XML/Ada, and elsewhere. There is also EAStrings and AdaCL. Georg