java - How to convert Unicode characters to ANSI using AutoIt? -
i reading java properties file autoit includes unicode characters in \u0xxx
format.
how can convert them ansi autoit?
thanks goes helped: how convert unicode characters ansi using autoit?
this solution:
#include <winapi.au3> local $str = "my name \u0393\u03a1\u0397" local $utfstr = execute("'" & stringregexpreplace($str, "(\\u([[:xdigit:]]{4}))","' & chrw(0x$2) & '") & "'") local $ansistr = _winapi_widechartomultibyte($utfstr) msgbox(64,"unicode2ansi", $utfstr & @crlf & $ansistr) exit
Comments
Post a Comment