You need to send a unicode string; because you are using the unicode version of message box MessageBoxW
, if you want to send normal ascii strings you need to use MessgeBoxA
ctypes.windll.user32.MessageBoxA(None, 'Hello', 'Window title', 0) # or
ctypes.windll.user32.MessageBoxW(None, u'Hello', u'Window title', 0)