I use TeX on my laptop (OS X) and on my workstation (Linux RHEL 6) and I have issues with the encoding of some files where I use accents (mostly in authors names, but also because I'm French and I have some documents in French). I guess my issues is that I sometimes rely on the more flexible encoding on the Mac side to use accented characters directly like é instead of doing {\'{e}} for example. Then through Dropbox, or maybe because I then open these files on UNIX, these accents get mangled differently on both sides, and I obtain 2 different looking files on both sides. I'm pretty sure I could fix all this by using only the escape way but I might be able to do something more elegant (maybe I need to explicitly set the encoding both in the .tex file and in vi). I'm not sure what happens if I go to another editor then like TeXshop...
Do you have some pointers or a more elegant solution to my problem? Let me know if you need more information ! Thanks !
UPDATE: Thanks to some of the pointers given, I know a little bit more about the issues now.
I created a small sample file to reproduce the issue. If I create it in TeXShop, it seems to work fine whereas the issue exists if I create the file with vim. Additionally, the file --mime-encoding test.tex yields different output depending on the way of creating the file:
{
$ file --mime-encoding test.tex
test.tex: unknown-8bit
$ file --mime-encoding test2.tex
test2.tex: utf-8
}
{
kheldar@shadowfax /Users/kheldar/Dropbox/Boulot/CV/csuros/2011
$ vi test.tex
kheldar@shadowfax /Users/kheldar/Dropbox/Boulot/CV/csuros/2011
$ vi test2.tex
\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \begin{document} \title{Test encoding} \maketitle
Test accents: é è ê ë
\begin{verbatim} Test accents: é è ê ë \end{verbatim}
Test accents: \'{e} `{e} \"{e}
\begin{verbatim} Test accents: \'{e} `{e} \"{e} \end{verbatim}
\end{document}
}
Note that even with the TeXShop created file with utf-8, I don't see utf-8 in the status bar described by @Daniel. So it must be my vimrc right? Somehow I have other options that interfere with the set filencoding command. Any idea?

vion the Unix side will be using that encoding. – egreg Dec 3 '11 at 22:40linux.texandmac.texcreated on the respective platform and with accented characters into thePublicfolder of your dropbox and post the links to them here. – Daniel Dec 5 '11 at 7:54set enc. To convert existing files there is theiconvprogram (iconv -cs -f ISO-8859-1 -t UTF-8 latin.tex > utf8.tex, details available withman iconv. Another option is to load them into vim and then do aset fenc=utf8(whereasencshould remainlatin1) and then write the buffer back to disk. Wheneverfencis different fromenc, vim converts (usingiconv, by the way) the buffer tofencon write. – Daniel Dec 5 '11 at 20:49