http://www.perlmonks.org?node_id=958802


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.