Jump to content

Recommended Posts

Posted

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?

Posted

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))

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...