[OS X TeX] Perl, OS X, UTF-8 and TeXShop
herbs at wideopenwest.com
Thu Feb 17 16:28:32 CET 2005
On 2/17/05 9:20 AM, "stephenmoye at cox.net" <stephenmoye at cox.net> wrote:
> I have written a perl script that takes legacy Textures documents and makes
> them into XeTeX-ready files (\"o => ö and the like). The new documents
> created by perl open with the now-very-tiresome warning:
> "This file was opened with MacOSRoman encoding... blablabla".
> What is TeXShop looking for? Is there some way in perl (I am a novice as yet)
> to write a file that is UTF-8 compliant?
> Thanks in advance for any insights on this.
I don't know if there is a way for TeXShop to ``know'' exactly what the
encoding is beforehand, that is why there is a directive you can put near
the beginning of the file (not the first line):
So that TeXShop will open it in UTF-8 mode. You can also set the default
encoding in the Preferences.
Hope that helps.
(herbs at wideopenwest.com)
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives