Re: Unicode issue on Windows cmd line

2009-02-11 Thread jeffg
On Feb 11, 10:00 pm, "Gabriel Genellina" wrote: > En Wed, 11 Feb 2009 23:11:37 -0200, jeffg escribió: > > > > > On Feb 11, 6:30 pm, "Martin v. Löwis" wrote: > >> > Thanks, I ended up using encode('iso-8859-15', "replace") > >> > Perhaps more up to date than cp1252...?? > >> If you encode as iso-

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Gabriel Genellina
En Wed, 11 Feb 2009 23:11:37 -0200, jeffg escribió: On Feb 11, 6:30 pm, "Martin v. Löwis" wrote: > Thanks, I ended up using encode('iso-8859-15', "replace") > Perhaps more up to date than cp1252...?? If you encode as iso-8859-15, but this is not what your terminal expects, it certainly won't

Re: Unicode issue on Windows cmd line

2009-02-11 Thread jeffg
On Feb 11, 6:30 pm, "Martin v. Löwis" wrote: > > Thanks, I ended up using encode('iso-8859-15', "replace") > > Perhaps more up to date than cp1252...?? > > > It still didn't print correctly, but it did write correctly, which was > > my main problem. > > If you encode as iso-8859-15, but this is no

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Martin v. Löwis
> Thanks, I ended up using encode('iso-8859-15', "replace") > Perhaps more up to date than cp1252...?? > > It still didn't print correctly, but it did write correctly, which was > my main problem. If you encode as iso-8859-15, but this is not what your terminal expects, it certainly won't print c

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Benjamin Kaplan
On Wed, Feb 11, 2009 at 5:10 PM, jeffg wrote: > On Feb 11, 3:57 pm, "Martin v. Löwis" wrote: > > > Having issue on Windows cmd. > > >> Python.exe > > a = u'\xf0' > > print a > > > > > This gives a unicode error. > > > > > Works fine in IDLE, PythonWin, and my Macbook but I need to run

Re: Unicode issue on Windows cmd line

2009-02-11 Thread jeffg
On Feb 11, 3:57 pm, "Martin v. Löwis" wrote: > > Having issue on Windows cmd. > >> Python.exe > a = u'\xf0' > print a > > > This gives a unicode error. > > > Works fine in IDLE, PythonWin, and my Macbook but I need to run this > > from a windows batch. > > > Character should look like th

Re: Unicode issue on Windows cmd line

2009-02-11 Thread MRAB
Benjamin Kaplan wrote: [snip] Whoops. Didn't mean to hit send there. I was going to say, you can't have everything when Microsoft is only willing to break the programs that average people are going to use on a daily basis. I mean, why would they do something nice for the international community

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Benjamin Kaplan
On Wed, Feb 11, 2009 at 4:10 PM, Benjamin Kaplan wrote: > > > On Wed, Feb 11, 2009 at 3:57 PM, "Martin v. Löwis" wrote: > >> > Having issue on Windows cmd. >> >> Python.exe >> a = u'\xf0' >> print a >> > >> > This gives a unicode error. >> > >> > Works fine in IDLE, PythonWin, and my Mac

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Benjamin Kaplan
On Wed, Feb 11, 2009 at 3:57 PM, "Martin v. Löwis" wrote: > > Having issue on Windows cmd. > >> Python.exe > a = u'\xf0' > print a > > > > This gives a unicode error. > > > > Works fine in IDLE, PythonWin, and my Macbook but I need to run this > > from a windows batch. > > > > Character

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Martin v. Löwis
> Having issue on Windows cmd. >> Python.exe a = u'\xf0' print a > > This gives a unicode error. > > Works fine in IDLE, PythonWin, and my Macbook but I need to run this > from a windows batch. > > Character should look like this "ð". > > Please help! Well, your terminal just cannot

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 2:50 PM, jeffg wrote: > On Feb 11, 2:35 pm, Albert Hopkins wrote: > > On Wed, 2009-02-11 at 10:35 -0800, jeffg wrote: > > > Having issue on Windows cmd. > > > > Python.exe > > > >>>a = u'\xf0' > > > >>>print a > > > > > This gives a unicode error. > > > > > Works fine in

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Benjamin Kaplan
On Wed, Feb 11, 2009 at 2:50 PM, jeffg wrote: > On Feb 11, 2:35 pm, Albert Hopkins wrote: > > On Wed, 2009-02-11 at 10:35 -0800, jeffg wrote: > > > Having issue on Windows cmd. > > > > Python.exe > > > >>>a = u'\xf0' > > > >>>print a > > > > > This gives a unicode error. > > > > > Works fine in

Re: Unicode issue on Windows cmd line

2009-02-11 Thread jeffg
On Feb 11, 2:35 pm, Albert Hopkins wrote: > On Wed, 2009-02-11 at 10:35 -0800, jeffg wrote: > > Having issue on Windows cmd. > > > Python.exe > > >>>a = u'\xf0' > > >>>print a > > > This gives a unicode error. > > > Works fine in IDLE, PythonWin, and my Macbook but I need to run this > > from a wi

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Albert Hopkins
On Wed, 2009-02-11 at 10:35 -0800, jeffg wrote: > Having issue on Windows cmd. > > Python.exe > >>>a = u'\xf0' > >>>print a > > This gives a unicode error. > > Works fine in IDLE, PythonWin, and my Macbook but I need to run this > from a windows batch. > > Character should look like this "ð". >