There are four functions:
Asc2Unicode($AscString)
Unicode2Asc($UnicodeString)
Unicode2Utf8($UnicodeString)
Utf82Unicode($Utf8String)
Note: $AscString and $Utf8String are normal strings, and $UnicodeString should be a binarystring
Tested under Chinese Tradition (Taiwan) environment and worked fine. Hope it support all language system.
Func Asc2Unicode($AscString)
Local $BufferSize = StringLen($AscString) * 2
Local $Buffer = DllStructCreate("byte[" & $BufferSize