I'm Vietnamese so the words in my string would be like this:
'Nếu tôi là cậu thì sẽ biết mệt mỏi'
I want to replace this string to:
'Neu toi la cau thi se biet met moi'
Of course it is possible to use StringReplace() to assign those two strings, but when the string is self-set, that is not possible. StringRegExpReplace() is replaceable.
I tried turning it into a function but it doesn't return anything
Func _SStringReplace($text)
StringRegExpReplace($text, '[ă â
Use this to unaccent your strings:
; Unicode Normalization Forms
Global Enum $UNF_NormC = 1, $UNF_NormD, $UNF_NormKC = 5, $UNF_NormKD
Func _UNF_Change($sIn, $iForm)
If $iForm = $UNF_NormC Or $iForm = $UNF_NormD Or $iForm = $UNF_NormKC Or $iForm = $UNF_NormKD Then
Local $aRet = DllCall("Normaliz.dll", "int", "NormalizeString", "int", $iForm, "wstr", $sIn, "int", -1, "ptr", 0, "int", 0)
Local $tOut = DllStructCreate("wchar[" & 2 * ($aRet