in reply to Re: Encode only wide char entities?
in thread Encode only wide char entities?

I'm using utf8 but I'm getting "wide chars" from nasty M$ programs.

What I was missing was the unicode range syntax:

encode_entities($_,'\x{0100}-\x{FFFF}')

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

Replies are listed 'Best First'.
Re^3: Encode only wide char entities?
by ikegami (Patriarch) on Mar 09, 2012 at 23:20 UTC
    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)");