I wrote the following before I solved my problem by other means (I  
fixed the encoding on my input file), but I'm still curious.


I wrote a Ruby script to translate a CSV file to an XML-format  
property list file. At my first pass, I specified an encoding of  
"UTF-8". This did not pass muster with plutil; it expected UTF-8, but  
it detected some invalid characters.

So, being too lazy to fix my Ruby (assuming a Ruby fix is possible), I  
emitted an encoding of "ASCII" instead. This satisfied plutil, and  
the .plist was clean.

However, BBEdit would no longer open the file. "One or more characters  
were encountered that cannot be represented in the desired text  
encoding (MacOS Error code: -8754)" TextMate would open the file, but  
I prefer to edit .plist files in BBEdit.

What could I have done? One thing I'd hope BBEdit could do for me (I  
hope) is show me which characters in the file are UTF-8 gremlins, but  
that can't happen if it refuses to display the file.

(By the way: _Is_ there a way to get BBEdit to flag characters in an  
ASCII file as UTF-8 gremlins?)

        — F


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "supp...@barebones.com" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to