[cgiapp] file uploads and encodings

Michael Peters mpeters at plusthree.com
Mon Oct 4 17:33:05 EDT 2010


On 10/04/2010 05:13 PM, ĵohn sayļør wrote:

> i think you have to do this programmatically by examining the characters
> in the file. there may be libraries to do this already somewhere, but i
> have exerted no effort to find them.

It's not 100% (it can't be when you don't know the encoding) but you can 
use something like Encode::Guess or Text::GuessEncoding.

-- 
Michael Peters
Plus Three, LP


More information about the cgiapp mailing list