good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Problem with utf8 after nearly 4096 bytesby farang (Chaplain) |
on Sep 09, 2013 at 04:14 UTC ( [id://1052955]=note: print w/replies, xml ) | Need Help?? |
You have a point. Even without BOM the program still recognize that the first block is in utf8. How could he don't think the same of the rest of the file?That's just it, Perl will threat the whole file as utf-8. It seems you are likely corrupting the file during upload. If you post the relevant code you are using to handle the upload, probably some monks can either see what's wrong with it or give a alternate approach for uploading which avoids the problem.
In Section
Seekers of Perl Wisdom
|
|