[OS X TeX] Leopard Quick Look & TeX

Herbert Schulz herbs at wideopenwest.com
Fri Nov 30 22:08:35 CET 2007


On Nov 30, 2007, at 2:36 PM, Maarten Sneep wrote:

> On 30 nov 2007, at 15:51, Kino wrote:
>
>>
>> On 2007-11-30, at 7:09 AM, Herbert Schulz wrote:
>>
>>> I read that before and it didn't seem to do anything. Tried it  
>>> again, now, and still, using Quick Look on a file I know is UTF-8  
>>> is being misread.
>>
>> If you have saved the file once in TextEdit, Quick Look will  
>> displayed it correctly. See
>> <file:///Developer/Examples/AppKit/TextEdit/README.rtf>
>>
>>
>> Alternatively set the attribute manually.
>>
>> xattr -w com.apple.TextEncoding UTF-8 <file-path>
>
> For mee it seems to work, and I never save utf-8 with a BOM. It  
> would be a good idea if text editors read and set this file attribute.
>
> Maarten - off to write to Barebones.

Howdy,

BBEdit seems to figure out when a file is UTF-8 (without BOM). How  
does it do that?

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)





More information about the macostex-archives mailing list