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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.18.196 with SMTP id l44mr1044127yhl.52.1384632390784; Sat, 16 Nov 2013 12:06:30 -0800 (PST) Path: Xl.tags.giganews.com!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!209.85.216.88.MISMATCH!i2no3338934qav.0!news-out.google.com!9ni32456qaf.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 16 Nov 2013 14:06:30 -0600 Newsgroups: comp.lang.ada Date: Sat, 16 Nov 2013 15:06:28 -0500 From: "Peter C. Chapin" X-X-Sender: peter@whirlwind Subject: Re: strange behaviour of utf-8 files In-Reply-To: <5bf1b290-70bc-4240-b27c-120ce6b0b840@googlegroups.com> Message-ID: References: <73e0853b-454a-467f-9dc7-84ca5b9c29b2@googlegroups.com> <1ghx537y5gbfq.17oazom68d4n6.dlg@40tude.net> <5bf1b290-70bc-4240-b27c-120ce6b0b840@googlegroups.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-zrYeA13Fu8pYTkzkRlfihtRYlZ+jD1YkDtw4UQQj6BFxAiN86f53ZaqjRWnLbPU95SFjJ2ZhdFvM7B7!+W9gRFluTIHYlI3apCUyuVcOepCL+yzi7YtbuKJkc7YZyD770jFVkTaUIMweEzbKWsxiy50I0g== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2250 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: 2013-11-16T15:06:28-05:00 List-Id: On Sat, 16 Nov 2013, Stoik wrote: > By the way, nothing changes if I use wide_character and wide_string > instead of character and string. Even if character=octet, certainly > wide_character is not an octet! It sounds like you want something like function UTF8_String_To_Wide_String(S : String) return Wide_String; UTF-8 is a variable length encoding and thus not the same beast as Wide_String. String literals are going to be encoded in the same manner as the rest of the source text, of course. Peter