On 2006-11-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> you could also use encode("iso-8859-1") to nterpret just the
> printed name such as: print myfilename.encode("iso-8859-1")
>
> and by the way if you wanted the file NAME you could have used
> openfilename() instead of openfile();-)
Tim Daneliuk wrote:
> Sefyroth wrote:
> > Thanks,
> >
> > but I get this error when I try this.
> >
> > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
> > position 12: ordinal not in range(128)
> >
> > I had encountered it with the askdirectory method as well. Is there an
> >
On Wed, 08 Nov 2006 21:59:38 +0100, Tim Daneliuk <[EMAIL PROTECTED]>
wrote:
> Sefyroth wrote:
>> Thanks,
>> but I get this error when I try this.
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
>> position 12: ordinal not in range(128)
>> I had encountered it with the
On Wed, 08 Nov 2006 20:01:08 +0100, <[EMAIL PROTECTED]> wrote:
> Hello,
> I am working on a school project that requires me to get the path of a
> filename for future treatment.
> I've tried getting a file with tkFileDialog.askopenfile.
>
>
>
> import t
Sefyroth wrote:
> Thank you!!! I have had problems with other stuff because of this
> (mainly py2exe!)
>
> It did the job! I thank you a lot.
My pleasure.
>
> Just wondering though,
>
> D:/Travaux/5ème session/B51 - Dev. de
^
> Systèmes/Workspace/LMAOSoft/Controleur.py
^
Thank you!!! I have had problems with other stuff because of this
(mainly py2exe!)
It did the job! I thank you a lot.
Just wondering though,
D:/Travaux/5ème session/B51 - Dev. de
Systèmes/Workspace/LMAOSoft/Controleur.py
That's my filepath, what is not ASCII in there? è
Just checked and it'
Sefyroth wrote:
> Thanks,
>
> but I get this error when I try this.
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
> position 12: ordinal not in range(128)
>
> I had encountered it with the askdirectory method as well. Is there an
> easy way to bypass this?
>
> Thanks
Thanks,
but I get this error when I try this.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 12: ordinal not in range(128)
I had encountered it with the askdirectory method as well. Is there an
easy way to bypass this?
Thanks again
Tim Daneliuk wrote:
> [EMAIL P
[EMAIL PROTECTED] wrote:
> Hello,
> I am working on a school project that requires me to get the path of a
> filename for future treatment.
> I've tried getting a file with tkFileDialog.askopenfile.
>
>
>
> import tkFileDialog
> file = tkFileDialog.ask
Hello,
I am working on a school project that requires me to get the path of a
filename for future treatment.
I've tried getting a file with tkFileDialog.askopenfile.
import tkFileDialog
file = tkFileDialog.askopenfile()
print file
*
10 matches
Mail list logo