TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am mosly using pdflatex. One recurring problem is that the encoding used on Linux (my system), UTF8, is different from on Windows, I use


on Windows one must use (well, to write spanish ...)


and files must be converted when moved between systems. Is there a way to organize the workflow such that the same input file can be used on both systems? without conversion and without any editing? (possibly invoking change to XelaTeX/LuaTeX, if necessary)

share|improve this question
As long as you're using a Windows editor that supports Unicode (pretty much anything except WinEdt) you should be able to use utf8 on all machines. – Alan Munn Jun 26 '12 at 0:26
@AlanMunn: there's good news regarding WinEdt and Unicode support --- version 7, released ca 3 months ago, is fully Unicode-capable. :-) – Mico Jun 26 '12 at 0:33
@Mico Good to know. I've made this a little clearer in the big LaTeX editors/IDE question. – Alan Munn Jun 26 '12 at 0:40
@AlanMunn: I guess it's pretty much anything except TeXnicCenter (except for the alpha version). – Caramdir Jun 26 '12 at 1:07

Use a cross-platform Unicode editor like TeXworks/TeXmaker/TeXstudio where you set in the input encoding independent of the OS encoding.

For example TeXmaker recognises and suggests the recommended font encoding written by a third person to retain the consistency.

Its always better to write \usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc} to reveal your input encoding for third person so that he opens the document in the same encoding when using pdflatex.

On Windows, with the help of cross-platform Unicode editors one can use latin1, utf8 or even utf8x encoding and share it in Linux without any trouble.

share|improve this answer
LyX isn't a TeX editor: it's a separate system that really shouldn't be recommended as an equivalent to an editor. Also, if you're using XeLaTeX or LuaLaTeX you shouldn't load inputenc. – Alan Munn Jun 26 '12 at 1:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.