views:

69

answers:

1

The question arises from the reply.

How can I change the storing from an ISO-standard to UTF-8?

Some details:

I used Mac with some ISO-standard. I formatted it, so I cannot know the exact ISO-standard. Now, I use Ubuntu, and I try to switch my Mac-latex-files from the ISO to UTF-8.

+1  A: 

To answer the question in the title: The file command may be able to guess the encoding of a given file.

To answer the question in the body: Try iconv.

Greg Hewgill
Some Latex files are of the type "Latex files", while other files are "graphviz graph text".
Masi
Ok, if `file` can't (or won't) guess then you will have to know what encoding you used to create the files. Use `iconv` to convert the files to your desired UTF-8 encoding.
Greg Hewgill
Thank you. +1 for the proper analysis, and the commands.
Masi