[python-win32] pywin and UCS2/UCS4

Michel Claveau mc at mclaveau.com
Thu Jun 21 11:48:25 CEST 2007


Hi!

----- Original Message ----- 
From: "Mark Hammond" <mhammond at skippinet.com.au>
To: "'Marc-André Belzile'" <mbelzile at softimage.com>; 
<python-win32 at python.org>
Sent: Thursday, June 21, 2007 8:32 AM
Subject: Re: [python-win32] pywin and UCS2/UCS4



> As far as I know, since Windows itself is UCS2


When I had wrapper the shell of windows (french version), I found this :
  - normally, windows return   cp850  strings
  - if necessary, windows return  utf-16  (UCS2)  strings.

But nothing give the information.
Perhaps it's possible to (binary) read  the begin of string ; if start with 
chr(0)+chr(4)  there are strong chances so that it is utf-16


@-salutations

Michel Claveau




More information about the Python-win32 mailing list