[OS X TeX] Perl, OS X, UTF-8 and TeXShop

stephenmoye at cox.net stephenmoye at cox.net
Thu Feb 17 17:11:08 CET 2005


> 
> From: Herb Schulz <herbs at wideopenwest.com>
> Date: 2005/02/17 Thu AM 10:28:32 EST
> To: TeX on Mac OS X Mailing List <MacOSX-TeX at email.esm.psu.edu>
> Subject: Re: [OS X TeX] Perl, OS X, UTF-8 and TeXShop
> 
> 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.
> > 
> 
> Howdy,
> 
> 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):
> 
> %&encoding=UTF-8 Unicode
> 
> So that TeXShop will open it in UTF-8 mode. You can also set the default
> encoding in the Preferences.
> 
> Hope that helps.
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest.com)

That was just what I needed. Thank you so much!

Stephen Moye

--------------------- 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 mailing list