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
>
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
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
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:
> >> >
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
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():
>
> >
> >
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
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
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()
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
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
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
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
13 matches
Mail list logo