Posts: 1,058
Threads: 367
Joined: Oct 2007
In a text string I need to find words in unicode.
I wrote the following code. I would welcome any advice for more elegant routines.
Macro
temp07
str s
s="english"
str s1=s
s1.unicode
s1.ansi(s1 CP_ACP)
if StrCompare(s s1)=0
,out "english"
else
,out "unicode"
Posts: 12,079
Threads: 141
Joined: Dec 2002
I would use regular expression "[\x80-\xff]+".
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thank you, much more elegant!