can transform "€" this code into " €"Transform, HTML, String [, Flags]
But I want to reverse back, and I not find the corresponding help.
I make a function to transform it,but it work Poor efficiency。Excuse me what method to solve it?
Code: Select all
unicode2ascii(str) {
Loop {
pos:=RegExMatch(str, "Om)&#(\d+);", findit)
a:=findit.Pos()
b:=Chr(findit.Value(1))
str:=RegExReplace(str, "&#\d+;", b, , 1)
if pos=0
break
}
return str
}