Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: SOLVED Re: Writing HTML file with UTF-8 chars

by 2teez (Priest)
on Apr 27, 2013 at 18:57 UTC ( #1031002=note: print w/replies, xml ) Need Help??

in reply to SOLVED Re: Writing HTML file with UTF-8 chars
in thread Writing HTML file with UTF-8 chars

On the second point: add binmode OUT, ":utf8";after the file open

I think is better, to use binmode OUT, ":encoding(UTF-8)"; because ':encoding(UTF-8)'checks the data for actually being valid UTF-8, while ':utf8' just marks the data as UTF-8 without further checking.
Please check binmode.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031002]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2016-10-24 02:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.