Determining character encoding for a given file

Hey list

This might not be debian specific, but does anyone know of a quick way
(hack/tool) to determine the encoding used for a given file?

Best regards
--
Kim Christensen
"I want bowel cancer!"

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Determining character encoding for a given file

On Tue, Jan 30, 2007 at 11:10:58AM +0100, Kim Christensen wrote:
> Hey list
>
> This might not be debian specific, but does anyone know of a quick way
> (hack/tool) to determine the encoding used for a given file?
>
> Best regards
> --
Hi Kim ,
apt-cache show recode
apt-cache show enca
cheers,
Kev
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keysever: subkeys.pgp.net | my NPO: cfsg.org |

Determining character encoding for a given file

On 2007-01-30 06:40:52 -0500, Kevin Mark wrote:
> On Tue, Jan 30, 2007 at 11:10:58AM +0100, Kim Christensen wrote:
> > This might not be debian specific, but does anyone know of a quick way
> > (hack/tool) to determine the encoding used for a given file?

> apt-cache show recode

How can you do that with recode?

> apt-cache show enca

enca is very limited. Alternatively, you have the command "file".

--
Vincent Lefèvre - Web:
100% accessible validated (X)HTML - Blog:
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

--

Determining character encoding for a given file

* Vincent Lefevre [2007-01-30 12:49:00 +0100]:

> On 2007-01-30 06:40:52 -0500, Kevin Mark wrote:
> > On Tue, Jan 30, 2007 at 11:10:58AM +0100, Kim Christensen wrote:
> > > This might not be debian specific, but does anyone know of a quick way
> > > (hack/tool) to determine the encoding used for a given file?
>
> > apt-cache show recode
>
> How can you do that with recode?
>
> > apt-cache show enca
>
> enca is very limited. Alternatively, you have the command "file".

Thanks, this does exactly what I'm after!

--
Kim Christensen
"I am Jack's inflamed sense of rejection."

--

Determining character encoding for a given file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/31/07 02:33, Kim Christensen wrote:
> * Vincent Lefevre [2007-01-30 12:49:00 +0100]:
>
>> On 2007-01-30 06:40:52 -0500, Kevin Mark wrote:
>>> On Tue, Jan 30, 2007 at 11:10:58AM +0100, Kim Christensen wrote:
>>>> This might not be debian specific, but does anyone know of a quick way
>>>> (hack/tool) to determine the encoding used for a given file?
>>> apt-cache show recode
>> How can you do that with recode?
>>
>>> apt-cache show enca
>> enca is very limited. Alternatively, you have the command "file".
>
> Thanks, this does exactly what I'm after!

Which one? enca or file?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFwJJnS9HxQb37XmcRAnMHAJ9jMMQpIoAYk9mmfkRErZ3KWiWrjwCcC8ho
wjz+6SkuUOUpcDXnCCf/EDE=
=Wer/
-----END PGP SIGNATURE-----

--

Determining character encoding for a given file

* Ron Johnson [2007-01-31 06:58:16 -0600]:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01/31/07 02:33, Kim Christensen wrote:
> > * Vincent Lefevre [2007-01-30 12:49:00 +0100]:
> >
> >> On 2007-01-30 06:40:52 -0500, Kevin Mark wrote:
> >>> On Tue, Jan 30, 2007 at 11:10:58AM +0100, Kim Christensen wrote:
> >>>> This might not be debian specific, but does anyone know of a quick way
> >>>> (hack/tool) to determine the encoding used for a given file?
> >>> apt-cache show recode
> >> How can you do that with recode?
> >>
> >>> apt-cache show enca
> >> enca is very limited. Alternatively, you have the command "file".
> >
> > Thanks, this does exactly what I'm after!
>
> Which one? enca or file?

"file", sorry for that :-)

--
Kim Christensen
"I am Jack's broken heart."

--

Syndicate content