Re: kdialog and unicode

2005-04-28 Thread John Ridley
Matt wrote: > Interesting - this displays correctly when I run the above code from a > python shell. However, when I run it as a superkaramba theme (which is > a wrapper interface to some kde functions, but allegedly passes > straight python functions direct to the python interpreter), it shows >

Re: kdialog and unicode

2005-04-27 Thread dmbkiwi
John Ridley wrote: > dmbkiwi wrote: > > > I'm trying to get python, unicode and kdialog to play nicely > together. > > This is a linux machine, and kdialog is a way to generate dialog > boxes in > > kde with which users can interact (for example input text), and you > can > > use the outputted tex

Re: kdialog and unicode

2005-04-27 Thread John Ridley
dmbkiwi wrote: > I'm trying to get python, unicode and kdialog to play nicely together. > This is a linux machine, and kdialog is a way to generate dialog boxes in > kde with which users can interact (for example input text), and you can > use the outputted text in your script. > > Anyway, what I

Re: kdialog and unicode

2005-04-27 Thread dmbkiwi
John Machin wrote: > On 26 Apr 2005 19:16:25 -0700, [EMAIL PROTECTED] wrote: > > > > >John Machin wrote: > >> On 26 Apr 2005 13:39:26 -0700, [EMAIL PROTECTED] (dumbkiwi) wrote: > >> > >> >Peter Otten <[EMAIL PROTECTED]> wrote in message > >news:<[EMAIL PROTECTED]>... > >> >> Dumbkiwi wrote: > >> >

Re: kdialog and unicode

2005-04-27 Thread John Machin
On 26 Apr 2005 19:16:25 -0700, [EMAIL PROTECTED] wrote: > >John Machin wrote: >> On 26 Apr 2005 13:39:26 -0700, [EMAIL PROTECTED] (dumbkiwi) wrote: >> >> >Peter Otten <[EMAIL PROTECTED]> wrote in message >news:<[EMAIL PROTECTED]>... >> >> Dumbkiwi wrote: >> >> >> >> >> Just encode the data in the

Re: kdialog and unicode

2005-04-26 Thread dmbkiwi
John Machin wrote: > On 26 Apr 2005 13:39:26 -0700, [EMAIL PROTECTED] (dumbkiwi) wrote: > > >Peter Otten <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > >> Dumbkiwi wrote: > >> > >> >> Just encode the data in the target encoding before passing it to > >> >> os.popen(): > > > > >

Re: kdialog and unicode

2005-04-26 Thread dmbkiwi
Peter Otten wrote: > dumbkiwi wrote: > > > I'd be interested to see what your default encoding is, > > ascii > > > and why your output was different. > > If only I knew. > > > Anyway, from your post, I've done some more digging, and found the > > command: > > > > sys.setappdefaultencoding() > > Th

Re: kdialog and unicode

2005-04-26 Thread John Machin
On 26 Apr 2005 13:39:26 -0700, [EMAIL PROTECTED] (dumbkiwi) wrote: >Peter Otten <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >> Dumbkiwi wrote: >> >> >> Just encode the data in the target encoding before passing it to >> >> os.popen(): > >Anyway, from your post, I've done som

Re: kdialog and unicode

2005-04-26 Thread Peter Otten
dumbkiwi wrote: > I'd be interested to see what your default encoding is, ascii > and why your output was different. If only I knew. > Anyway, from your post, I've done some more digging, and found the > command: > > sys.setappdefaultencoding() That is an alias for sys.setdefaultencoding()

Re: kdialog and unicode

2005-04-26 Thread dumbkiwi
Peter Otten <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Dumbkiwi wrote: > > >> Just encode the data in the target encoding before passing it to > >> os.popen(): > >> > >> test = os.popen('kdialog --inputbox %s' % data.encode("utf-8")) > > > I had tried that, but then the

Re: kdialog and unicode

2005-04-26 Thread Peter Otten
Dumbkiwi wrote: >> Just encode the data in the target encoding before passing it to >> os.popen(): >> >> test = os.popen('kdialog --inputbox %s' % data.encode("utf-8")) > I had tried that, but then the text looks like crap. The text I'm using > for this is Polish, and there are a lot of non-En

Re: kdialog and unicode

2005-04-26 Thread Dumbkiwi
On Tue, 26 Apr 2005 11:41:01 +0200, Peter Otten wrote: > Dumbkiwi wrote: > >> I'm trying to get python, unicode and kdialog to play nicely together. >> This is a linux machine, and kdialog is a way to generate dialog boxes >> in kde with which users can interact (for example input text), and you

Re: kdialog and unicode

2005-04-26 Thread Peter Otten
Dumbkiwi wrote: > I'm trying to get python, unicode and kdialog to play nicely together. > This is a linux machine, and kdialog is a way to generate dialog boxes in > kde with which users can interact (for example input text), and you can > use the outputted text in your script. > > Anyway, what

kdialog and unicode

2005-04-26 Thread Dumbkiwi
I'm trying to get python, unicode and kdialog to play nicely together. This is a linux machine, and kdialog is a way to generate dialog boxes in kde with which users can interact (for example input text), and you can use the outputted text in your script. Anyway, what I'm doing is reading from a u