regex - Coldfusion doesn't recognize japanese character unicode when searching with regular expression -
when try search japanese characters regular expression in coldfusion, got code.
<cfset test1 = refind("[\u3040-\u309f]", "あ")> (1) <cfset test2 = refind("[\u61]", "a")> (2) <cfdump var="#test#">
with (1)
got result 0
indicates there no match. actually, above unicode matches all hiragana characters including above char あ
. should return 1
.
with (2)
got 1
indicates matched.
i tried anscii chars, works japanese chars doesn't.
how should fix this?
Comments
Post a Comment