Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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: (14)
As of 2015-07-06 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls