perl - Reading UTF8 files with File::Slurp -


i try read html file perl module file::slurp:

binmode stdout, ':utf8'; $htmlcontent = read_file($file, {binmode => ':utf8'}); 

but when print $htmlcontent variable, characters not understood, due french accents or special characters.

for example : "plus d'actualit\u00e9s" should "plus d'actualités"

i checked encoding of file , it's ok!

html document, utf-8 unicode text, long lines, crlf, lf line terminators 

is there problem module?

thanks

\u00e9 not utf-8 character, javascript represent of unicode character. need decode content of file encode::javascript::ucs example.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -