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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -