SetWindowText and unicode

Mark Hammond mhammond at skippinet.com.au
Sat Oct 5 20:00:04 EDT 2002


Arun Sharma wrote:
> I'm trying to use the win32 extensions to create a simple app that
> sets the title of the window in unicode. However,
> 
> pywin.mfc.dialog.Dialog.SetWindowText()
> 
> supports only ASCII. Is there a way to call SetWindowTextW() with a
> unicode string ?
> 
>      -Arun

You may find that if you encode the string as MBCS it will work.

Mark.




More information about the Python-list mailing list