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+unsubscribe@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 "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Apr 10
Jim Correia Re: Opening an ASCII XML property list
Apr 10, 2009; 09:56
Jim Correia
Re: Opening an ASCII XML property list
Apr 10
Patrick Woolsey Re: Opening an ASCII XML property list
Apr 10, 2009; 10:17
Patrick Woolsey
Re: Opening an ASCII XML property list
Apr 10
Doug McNutt Re: Opening an ASCII XML property list
Apr 10, 2009; 10:22
Doug McNutt
Re: Opening an ASCII XML property list
Apr 10
Patrick Woolsey Re: Opening an ASCII XML property list
Apr 10, 2009; 12:03
Patrick Woolsey
Re: Opening an ASCII XML property list
Apr 10
Patrick Woolsey Re: Opening an ASCII XML property list
Apr 10, 2009; 12:03
Patrick Woolsey
Re: Opening an ASCII XML property list
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!