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,69ee92bd2c3d390f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Character set conversion Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 2 Aug 2005 11:45:27 +0200 Message-ID: <132b1crcqzdyq$.1mkzh01g0orwe$.dlg@40tude.net> NNTP-Posting-Date: 02 Aug 2005 11:45:25 MEST NNTP-Posting-Host: 2c8d416b.newsread2.arcor-online.net X-Trace: DXC=YRN80f25d>LSZ`lLL_hK=JQ5U85hF6f;DjW\KbG]kaMH41Ud:;E]@4C9:P^?4EWN7OWRXZ37ga[7JAWU[gWam9fC9dNT26l`VMN X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3891 Date: 2005-08-02T11:45:25+02:00 List-Id: On Tue, 02 Aug 2005 03:57:42 -0400, Adaddict wrote: > I'm looking for an Ada package that could provide me functions to convert > strings from one to another character set, for example from Windows to > MSDOS or to Unicode. Does that even exist? I've been looking everywhere > but haven't found anything. It is not clear what you actually need. Windows Unicode = Wide_Character in Ada. So to convert Latin-1 (=Ada String) to UCS-2 (=Ada Wide_String) you need just To_Wide_String (from Ada.Characters.Handling.) [ If UTF-8 encoding is what you are looking for, see http://www.dmitry-kazakov.de/ada/strings_edit.htm ] As for MS-DOS character set, what do you mean by that, graphical characters? I'm not sure if they are present in Unicode. Anyway, as others have noted, Translate might be useful for you. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de