Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Matching/replacing a unicode character only works after decode()

by ikegami (Pope)
on Jul 27, 2014 at 04:03 UTC ( #1095196=note: print w/ replies, xml ) Need Help??


in reply to Re: Matching/replacing a unicode character only works after decode()
in thread Matching/replacing a unicode character only works after decode()

No, it's because the regex engine expects Unicode code points (the result of decode), not UTF-8 (what MySQL returned).

It has nothing to do with backwards compatibility, or with being an old language. e.g. Java's regex library similarly expects chars, not bytes.


Comment on Re^2: Matching/replacing a unicode character only works after decode()
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-04-02 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (53 votes), past polls