in reply to how to determine the text file encoding
For that matter, since you have your string in utf8 already, you don't need to use "gb-to_simp()" (or Encode) at all.
And the point about the BOM, as explained in the first reply, is that perl won't print one automatically -- if you want it in the output, include it in the print statement.
|
|---|