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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -