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!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-ID: <8420111.Wyr4Ym1Iai@linux1.krischik.com> From: Martin Krischik Subject: Re: Avatox 1.0: Trouble with encoding in Windows Newsgroups: comp.lang.ada Date: Sun, 17 Sep 2006 11:30:58 +0200 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> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.74.130.70 (84.74.130.70) NNTP-Posting-Date: Sun, 17 Sep 2006 11:45:08 +0200 X-Trace: cd8a0450d1924f1ef27e321760 Xref: g2news2.google.com comp.lang.ada:6617 Date: 2006-09-17T11:30:58+02:00 List-Id: Bj�rn Persson wrote: > 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*? Only if the programmers are disciplined enough to consistently use the features available. So probably: No. The closest I have ever seen was OS/2. And even there most programmers where to lazy to look up or set ".TYPE" and used the file extension instead. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com