Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Encode only wide char entities?

by ikegami (Pope)
on Mar 09, 2012 at 22:31 UTC ( #958798=note: print w/replies, xml ) Need Help??

in reply to Encode only wide char entities?

Why would someone escape more than &<>'" these days? Isn't your HTML's charset UTF-8?

Replies are listed 'Best First'.
Re^2: Encode only wide char entities?
by jabowery (Beadle) on Mar 09, 2012 at 22:46 UTC
    I'm using utf8 but I'm getting "wide chars" from nasty M$ programs.

    What I was missing was the unicode range syntax:


    I suppose I could convert everything to utf8 that comes in but I wanted to expose the unicode as entities in the source.

      You SAY you're using UTF-8, but you forgot to actually encode to UTF-8. You probably need something like
      binmode(STDOUT, ":encoding(UTF-8)");
Re^2: Encode only wide char entities?
by LanX (Bishop) on Mar 09, 2012 at 22:55 UTC
    some webadmins configure apache to deliver iso-latin and deny .htaccess.

    no chance to use utf8 then.

    I had this case just a week ago...

    Cheers Rolf

      And Perlmonks uses cp1252. I'm assuming that's not the case here until he tells me otherwise.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958798]
[Discipulus]: ;=)
[Discipulus]: you are rigth: 2018 had less bad days than 2017, until now!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-01-23 09:00 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (242 votes). Check out past polls.