Python Program Displaying Messages In Different Language Than English
I have written a simple python program in version 2.7.6 (32 bit). But when i display any message in a message box it comes in some weird language. The code is below import Tkinter
Solution 1:
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)
Post a Comment for "Python Program Displaying Messages In Different Language Than English"