Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find words in unicode
#1
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
Code:
Copy      Help
str s
s="english"
str s1=s
s1.unicode
s1.ansi(s1 CP_ACP)
if StrCompare(s s1)=0
,out "english"
else
,out "unicode"
#2
I would use regular expression "[\x80-\xff]+".
#3
Thank you, much more elegant!


Forum Jump:


Users browsing this thread: 2 Guest(s)