Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: UTF8 URI Escaping

by ajinkyagadewar (Novice)
on Apr 12, 2012 at 10:17 UTC ( #964737=note: print w/ replies, xml ) Need Help??

in reply to Re: UTF8 URI Escaping
in thread UTF8 URI Escaping

Not sure if you have tried URI::Escape..

use URI::Escape; $str = uri_unescape("%c2 %a2"); print "$str";

Comment on Re^2: UTF8 URI Escaping
Download Code
Replies are listed 'Best First'.
Re^3: UTF8 URI Escaping
by snoopy20 (Novice) on Apr 12, 2012 at 11:33 UTC
    I send that to the log with die and it says... \xc2 \xa2 If I send that to DBI::Mysql it saves it as: £

      To remove that accented character u can use Text::Unaccent
      MySQL itself may be causing your problem - what kind of field are you storing it in? BLOB will screw up big style (binary data does not allow encode/decode), TEXT should be a safe bet (provided your MySQL table is set to UTF-8)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2015-11-28 06:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls