Re: txt encoding conversion

From: Joe Feise (me_at_privacy.net)
Date: 10/20/05


Date: Wed, 19 Oct 2005 16:36:05 -0700

alejo wrote on 10/19/2005 10:20:
>>>using "file" on a txt file I just get "ASCII text", whatever the
>>>encoding is.
>>
>>You are still talking in Win-doze mode. Just because a file ends with
>>the three letters txt does not mean that file will declare it to be
>>ASCII text. Fortunately, the Unix/linux file tools are more intelligent
>>than to believe that the end of a file name imbues a file with magical
>>properties.
>
>
> I know it: in fact I didn't say it did depend on the extension...
> If I ran "file" it just tells me whether it is an ASCII text or not, but
> it doesn't tell me which encoding it is.

You can't get any information of the encoding because that's not stored
in the file.

-Joe



Relevant Pages

  • Re: sequence detector dode required...
    ... for my Ph.D. did not know at the time what one-hot encoding is. ... Anyhow, languages such as VHDL ... Are the areas reported by your synthesis tool correlated with the ... restrict your code to ASCII letters or Italian letters or German ...
    (comp.lang.vhdl)
  • Re: Special letters in HTM-Links
    ... special letters in links but deals with non-ASCII letters in page _content_. ... Neither of them has any support in browsers, though, and neither of them is supposed to override the encoding specified in an HTTP header or in a meta tag. ... The page http://www.wein-plus.de/wdb/index.php3 is just a deceptive frameset document that "loads" two documents from another domain into frames, and these documents in turn have been declared to use utf-8 encoding. ...
    (alt.html)
  • Re: UTF-8 JavaScript files
    ... charset parameter is much more logical. ... it cannot override the encoding information in HTTP headers, ... (Note that tags can only specify the encoding on an HTML document. ... I will also try to declare the character set in the script tag. ...
    (comp.lang.javascript)
  • Re: Correction to 47 bit to 10 letter code
    ... > Know one may not like it in that a group of 10 letters would translate to ... the binary data as input to an arbitrary precision div/mod operation), ... Personally I'm fond of an approach that uses 6.5 bits/char, encoding ... decoder can blindly write a byte each time at least 8 bits have become ...
    (sci.crypt)
  • Re: Character encoding
    ... Mambo, when you save a text file, you're not actually saving letters; ... Your text editor and my browser know how to turn those ... order for my browser to read you file, it needs to know which encoding ... An http-equiv declaration in an HTML file is a way to override ...
    (comp.infosystems.www.authoring.html)