Help with windows clipboard and accented characters

Larry Bates lbates at swamisoft.com
Thu Jul 15 13:57:05 EDT 2004


Works on my system (Windows XP Pro, Python 2.2).
I run this, open MS Word, select EDIT-PASTE and
André is pasted in perfectly.

FYI,
Larry Bates
Syscon, Inc.

"Stephen Boulet" <stephendotboulet at motorola_._com> wrote in message
news:cd6a8j$hda$1 at newshost.mot.com...
> This little script used to work but now does not:
>
> import win32clipboard,sys,re
>
> s = 'André'
>
> # Paste string to clipboard
> win32clipboard.OpenClipboard(0)
> win32clipboard.EmptyClipboard()
> win32clipboard.SetClipboardText(s)
> win32clipboard.CloseClipboard()
>
> Now I get this on the clipboard:
>
> André
>
> How can I fix this?
>
> Stephen





More information about the Python-list mailing list