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

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

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -