comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada and UTF-8
Date: Thu, 28 Apr 2005 09:31:28 +0200
Date: 2005-04-28T09:31:28+02:00	[thread overview]
Message-ID: <1r1hpnavzhxg4.maeuv5w3wv52$.dlg@40tude.net> (raw)
In-Reply-To: 7eb5ab14.0504271405.6468bd7e@posting.google.com

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



      parent reply	other threads:[~2005-04-28  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-27 22:05 Ada and UTF-8 skylendar
2005-04-27 22:52 ` Georg Bauhaus
2005-04-29 20:32   ` skylendar
2005-04-28  7:31 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox