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

Re^3: HTML::Entities not working

by Corion (Pope)
on Jun 19, 2013 at 09:29 UTC ( #1039749=note: print w/replies, xml ) Need Help??


in reply to Re^2: HTML::Entities not working
in thread HTML::Entities not working

The problem seems not to be with HTML::Entities:

> perl -MHTML::Entities=decode_entities -e "print length decode_entiti +es('社論')" 2

As you've been told before, you will need to find out what encoding the browser uses to send your input data to your script. This is not necessarily easy to enforce. One good approach is to use <meta http-equiv="Content-Type" ... tags on every HTML page, no matter where it is served from.

Replies are listed 'Best First'.
Re^4: HTML::Entities not working
by vasanthgk91 (Sexton) on Jun 20, 2013 at 05:42 UTC

    Thank u ..I Got the output...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039749]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2018-07-17 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (372 votes). Check out past polls.

    Notices?