Topic : Non-ASCII Characters in QuickLook

Topic Archived This topic has been archived - replies are not allowed.


This question is not answered. "Helpful" answers available: 2 . "Solved" answers available: 1 .



            Permlink
            Replies : 5 - Pages : 1 - Last Post : Aug 3, 2008 9:15 AM by: Oskar Hermansson
KEMitchell

Posts: 5
Registered: Mar 26, 2007
Non-ASCII Characters in QuickLook
Posted: Apr 9, 2008 6:05 PM
 

Using QuickLook on plain UTF-8 text files (AKA .txt files) displays garbled interpretations of various extended characters, including fancy quotes and other nice formatting characters... not to mention the entire Russian alphabet. Surprising given OS X’s general UTF-8/Unicode friendliness.

Anyone know of a hack / fix ?

I'm willing to go outside the box a bit if necessary, considering most of the text files I work with are multilingual.

thanks -K

MBP 15   Mac OS X (10.5.2)    
Tom Gewecke


Posts: 21,097
From: Flagstaff, AZ
Registered: Oct 7, 2000
Re: Non-ASCII Characters in QuickLook
Posted: Apr 10, 2008 12:11 PM   in response to: KEMitchell
 

I can't seem to duplicate your problem. Here is a shot of my test using TextEdit. The missing one is Thai, probably because I changed the system font for that. Are you sure you used UTF-8? A .txt extension does not guarantee that -- you need to set the encoding in the prefs or the save dialogue. UTF-16 should also work. If you are using a different app, what is it?



iMac Intel/2C2D, eMac G4/700 10.5, 10.4, 10.3, 9.2   Mac OS X (10.5)    
KEMitchell

Posts: 5
Registered: Mar 26, 2007
Re: Non-ASCII Characters in QuickLook
Posted: Apr 12, 2008 2:19 PM   in response to: Tom Gewecke
 

I am using TextMate to save in UTF-8. I tried 16 (little-e and big-e) with no improved results.

Thanks!

MBP 15   Mac OS X (10.4.9)    
Tom Gewecke


Posts: 21,097
From: Flagstaff, AZ
Registered: Oct 7, 2000
Re: Non-ASCII Characters in QuickLook
Posted: Apr 12, 2008 3:00 PM   in response to: KEMitchell
 

I am using TextMate to save in UTF-8.

I downloaded TextMate and gave it a try. No problem for QuickLook to display non-ascii on my machine. If you would like to send me an copy of a file that does not work for you (probably best to zip it first), I'll have a look, just to make sure it's nothing about the file itself (tom at bluesky dot org).

iMac Intel/2C2D, eMac G4/700 10.5, 10.4, 10.3, 9.2   Mac OS X (10.5)    
Vincent Noel

Posts: 14
Registered: Jan 7, 2005
Re: Non-ASCII Characters in QuickLook
Posted: Jun 18, 2008 10:44 AM   in response to: KEMitchell
 

I have the same problem, and it appears to be related to the use of extended attributes, see this thread on the vim_mac mailing list:
http://www.nabble.com/MacVim-file-encoding-and-Quicklook-td17289501.html

Using the 'xattr' command, as explained in the thread, fixes the Quicklook display (for me). But it's still not clear 1) why you have to do this to make quicklook recognize the encoding and 2) why isn't there more people affected?

iBook G4 12, iMac 24, MBP 2.5   Mac OS X (10.5.3)    
Oskar Hermansson

Posts: 3
Registered: Jun 28, 2006
Re: Non-ASCII Characters in QuickLook
Posted: Aug 3, 2008 9:15 AM   in response to: Vincent Noel
 

I am also experiencing this problem. Just like Vincent writes, it seems to be related to extended attributes.

An easier solution that scrolling through the thread linked above, is to read Vincent's own blog post about this, which is very straight forward:
http://vnoel.wordpress.com/2008/06/18/weird-utf-8-bug-in-quicklook-its-the-ea/

Macbook   Mac OS X (10.5.4)