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.
|
|---|