coldfusion - Find non-ascii characters in string -
?testmsg=ÁáÉéÍíÑñÓóÚúÜü«»¿¡€
<cfset ascii = not refind('[\u0080-\uffff]', arguments.textmsg)>
variable ascii returns 1, shouldn't be. refind('[\u0080-\uffff]', arguments.textmsg) returns 0 despite textmsg containing characters above 128. line inside remote cffunction.
as per the docs, coldfusion's regex implementation doesn't support \u escape sequence (and, indeed, it's unaware of concept of unicode).
to want here, you're gonna have use java regexes.
Comments
Post a Comment