Chinese issues in WXPython's window.

xiaoxiao2021-03-06  25

I use the Unicode version of WXPython. To write a window, and the window's title and button in the window are inextrically used in Chinese, and directly use the Chinese string. Later, after teaching the high person, you will know if you want to convert it with a Unicode function. Take it, for example, to display "Hello", you want Unicode ("Hello", 'GB2312', can display Chinese normally. The error occurred while generating an exe file with Py2exe, the method of solving is, 'GB2312', change to 'mbcs', ie Unicode ('Hello', 'MBCS')

转载请注明原文地址:https://www.9cbs.com/read-65427.html

New Post(0)