Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: keeping diacritical marks in a string

by Utilitarian (Vicar)
on Oct 08, 2009 at 07:11 UTC ( [id://799874]=note: print w/replies, xml ) Need Help??


in reply to keeping diacritical marks in a string

Hi Foxpound,
The characters are almost certainly encoded as html entities on the web site ie é will be represented in the page as éor É.

in order to decode these you can use

HTML::Entities::decode_entities($string)
This will change entities in $string to Unicode characters, which is the most likely encoding in the database. Check out the module's documentation at HTML::Entities

That said, more info would be useful as this solution only deals with the default case.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found