[tpm] Detecting whether a file is encoded as UTF8 or UTF16

J. Bobby Lopez jbl at jbldata.com
Thu Oct 28 09:26:55 PDT 2010

Does anyone have a tried true method of detecting whether a file (or string)
is detected as UTF8 or UTF16?

I'm not talking about converting from one to the other, for that I'm aware
of ICONV, but I"m talking about simple detection, especially if the is
simply described as "data" by the 'file' command on the command line.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20101028/4e22e1fe/attachment.html>

More information about the toronto-pm mailing list