Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi all,
I want to check the encoding of a file, since i need to convert all my templates to utf8, but not the ones that are utf8, since they will be double encoded (using iconf) However, after supersearching i came up with the following possible solution: This is not returning anything however. for now, we started to use (opening each file and parsing it in the encoder): For the rest i did not find any other way of dertermining the encoding of a file, anyone knows what is wrong with File::BOM or does anyone have a better solution? Thanks!
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
In reply to how to check the encoding of a file by jbrugger
|
|