Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-13-2005, 02:45 AM   #1
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 16
text encoding, emacs and LaTeX.


I would like to know how to check the encoding of a text file (UTF-8? Latin-1? other?).
All the editors I use on my computer (emacs, kwrite) seem to code by default in UTF-8, but LaTeX seems to assume the file is latin-1. Therefore, I have to change the encoding each time I write a new file.

So, my questions are:
- how to check the encoding of a text file?
- how to force a text editor (emacs, for example) to use a specific encoding by default?
- how to make LaTeX accept UTF-8?

Thank you in advance for your answer to any of these questions.


Last edited by bnj; 10-13-2005 at 04:13 AM.
Old 10-13-2005, 03:46 AM   #2
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Latex and UTF

It looks like


does the job.

Old 10-13-2005, 07:56 AM   #3
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 16
Thank you. That works great.

Now does anybody have the answer to the other questions? I would really like to have more control on the encoding of my files.

Best regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LaTex text/graphic overlay edgjerp Linux - Software 1 02-27-2006 04:52 AM
find out encoding of text kpachopoulos Linux - General 0 08-28-2005 03:03 PM
html to text + encoding? David the H. Linux - General 6 11-22-2004 05:10 AM
cannot insert latex environment using emacs (C-c C-e) with auctex parv Linux - Software 6 09-02-2004 01:19 AM
best text editor for LaTeX ryancw Linux - Newbie 1 09-01-2003 04:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration