On Monday 02 October 2006 12:39 pm, Harrie Westphal wrote: > So, how does one determine the encoding of a file programatically?
I use a shell command on Linux, and since Macintosh runs on Unix, I imagine something similar might work. s.execute "file "+[path to file] will return an ID string with things like: "utf-8 text with very long lines" You'd have to parse out the encodings that you are likely to get. And, just guessing here, but I'll bet the MBS plugin or the ElfData plugin has something really convenient to do this. DJ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
