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,a82f86f344c98f79 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-15?Q?Bj=F6rn_Persson?= User-Agent: Thunderbird 1.5.0.5 (X11/20060808) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Avatox 1.0: Trouble with encoding in Windows References: <45051d37@news.upm.es> <45053aec$0$5142$9b4e6d93@newsspool1.arcor-online.net> <5ZednRK-0M3K15rYnZ2dnUVZ_o2dnZ2d@megapath.net> <4507e49f$0$26945$9b4e6d93@newsspool4.arcor-online.net> <1329609.zEkZECdoOa@linux1.krischik.com> In-Reply-To: <1329609.zEkZECdoOa@linux1.krischik.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Sat, 16 Sep 2006 09:43:12 GMT NNTP-Posting-Host: 83.250.106.238 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1158399792 83.250.106.238 (Sat, 16 Sep 2006 11:43:12 CEST) NNTP-Posting-Date: Sat, 16 Sep 2006 11:43:12 CEST Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:6610 Date: 2006-09-16T09:43:12+00:00 List-Id: Martin Krischik wrote: > Bj�rn Persson wrote: > >> Theoretically it's better to store the encoding outside the file so that >> you can know what encoding to use before you start reading the file. >> In practice this is usually impossible. > > Actually it is possible. The technique employed is called "extended > attributes" and is available for all modern operating systems. Will editors, compilers, preprocessors et cetera find the encoding setting in the extended attributes and obey it? Will version handlers, web browsers and other file transfer programs find the setting and send it when uploading? Will they set it correctly when downloading? Will all these programs use the same attribute for character encoding or will each one do it its own way? Will file managers copy and move the extended attributes along with the file? In short, is it really possible *in practice*? -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu