runningwaterpro Posted July 31, 2008 Posted July 31, 2008 Hi~ #Include <WinAPI.au3> $Condition = "Hello" $Condition = _WinAPI_MultiByteToWideChar($Condition) MsgBox(0, "", $Condition) I want to encode a string to utf8, but the source code always return null. Could you tell me what I have to do?
rasim Posted July 31, 2008 Posted July 31, 2008 runningwaterpro Welcome! From the help file: Return Value Success: Structure that contains the Unicode character string#Include <WinAPI.au3> $Condition = "Hello" $Condition = _WinAPI_MultiByteToWideChar($Condition) MsgBox(0, "", DllStructGetData($Condition, 1))
runningwaterpro Posted August 1, 2008 Author Posted August 1, 2008 runningwaterpro Welcome! From the help file: #Include <WinAPI.au3> $Condition = "Hello" $Condition = _WinAPI_MultiByteToWideChar($Condition) MsgBox(0, "", DllStructGetData($Condition, 1)) Thank you! hoho, my help file is Chinese, they translate it error...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now