I'm working with some people using apple laptops. When we share text files (latex files), I reach in an encoding problem on our CentOS laptops and desktops. In my favorite editor, "?" is "<8e>", "?" is "<88>" etc... Of course, I can change the encoding with iconv: iconv -f MACINTOSH -t ISO8859-15 file.bib.mac >file.bib iconv -f ISO8859-15 -t MACINTOSH file.bib >file.bib.mac But it is a little tedious to work like this... Runing pdflatex (in CentOS) on these files written on apple laptops works fine with \usepackage[applemac]{inputenc} So the main problem is an editor problem. I've tried several ones (nedit, gedit, kate, vim...) none of them seams to support this encoding. But may be it is a configuration problem ? Any idea ? Thanks Patrick
Hi Patrick,> iconv -f MACINTOSH -t ISO8859-15 file.bib.mac >file.bib > iconv -f ISO8859-15 -t MACINTOSH file.bib >file.bib.mac > > But it is a little tedious to work like this... > > Runing pdflatex (in CentOS) on these files written on apple laptops works fine with > > \usepackage[applemac]{inputenc} > > So the main problem is an editor problem. I've tried several ones (nedit, gedit, kate, vim...) none of them seams to support this encoding. But may be it is a configuration problem ? > > Any idea ?Use UTF-8 on all platforms. Most ediors on the Mac, among them the predominant LaTeX editor for Mac OS X, TeXshop, can (and should) be set to use UTF-8 as the default encoding, and if exchanging textual data between platforms is an issue, UTF-8 (or -16) is the only sensible solution. Opening files with language specific characters such as German Umlauts in Linux is no problem if the files have been encoded as UTC-8 and UTF-8 is set as the locale on Linux. Cheers, Peter.
Am 26.09.2014 um 15:13 schrieb Patrick B?gou <Patrick.Begou at legi.grenoble-inp.fr>:> I'm working with some people using apple laptops. When we share text files (latex files), I reach in an encoding problem on our CentOS laptops and desktops. In my favorite editor, "?" is "<8e>", "?" is "<88>" etc... > Of course, I can change the encoding with iconv: > > iconv -f MACINTOSH -t ISO8859-15 file.bib.mac >file.bib > iconv -f ISO8859-15 -t MACINTOSH file.bib >file.bib.mac > > But it is a little tedious to work like this... > > Runing pdflatex (in CentOS) on these files written on apple laptops works fine with > > \usepackage[applemac]{inputenc} > > > So the main problem is an editor problem. I've tried several ones (nedit, gedit, kate, vim...) none of them seams to support this encoding. But may be it is a configuration problem ? > > Any idea ?what about negotiating a _common_ encoding (e.g. utf8, latin1) for all? Its trivial for the "apple laptops" users. -- LF