Terry Reedy wrote:
If the terminal expects cp437 then displaying utf-8 might give some
problems.
My screen displays whatever Windows tells the graphics card to tell
the screen to display. In OpenOffice, I can select a unicode font
that displays at least everything in the BasicMultilingualPla
Marc 'BlackJack' Rintsch wrote:
First, thank you for the informative responses.
The windows command prompt expects cp437 because that's what old DOS
programs print to it.
Grrr. When the interpreter runs, it opens the command prompt window
with Python running, and the window closes when Py
On Mon, 01 Sep 2008 14:25:01 -0400, Terry Reedy wrote:
> Marc 'BlackJack' Rintsch wrote:
>> On Mon, 01 Sep 2008 02:27:54 -0400, Terry Reedy wrote:
>>
>> Most likely because Python figured out that the terminal expects cp437.
>> What does `sys.stdout.encoding` say?
>
> The interpreter in the comma
Marc 'BlackJack' Rintsch wrote:
On Mon, 01 Sep 2008 02:27:54 -0400, Terry Reedy wrote:
I doubt the OP 'chose' cp437. Why does Python using cp437 even when the
default encoding is utf-8?
On WinXP
>>> sys.getdefaultencoding()
'utf-8'
>>> s='\u012b'
>>> s
Traceback (most recent call last):
On Sep 1, 8:19 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Mon, 01 Sep 2008 02:27:54 -0400, Terry Reedy wrote:
> > I doubt the OP 'chose' cp437. Why does Python using cp437 even when the
> > default encoding is utf-8?
>
> > On WinXP
> > >>> sys.getdefaultencoding()
> > 'utf-8'
>
On Mon, 01 Sep 2008 02:27:54 -0400, Terry Reedy wrote:
> I doubt the OP 'chose' cp437. Why does Python using cp437 even when the
> default encoding is utf-8?
>
> On WinXP
> >>> sys.getdefaultencoding()
> 'utf-8'
> >>> s='\u012b'
> >>> s
> Traceback (most recent call last):
>File "", line
Tim Roberts wrote:
josh logan <[EMAIL PROTECTED]> wrote:
I am using Python 3.0b2.
I have an XML file that has the unicode character '\u012b' in it,
which, when parsed, causes a UnicodeEncodeError:
'charmap' codec can't encode character '\u012b' in position 26:
character maps to
This happens
josh logan <[EMAIL PROTECTED]> wrote:
>
>I am using Python 3.0b2.
>I have an XML file that has the unicode character '\u012b' in it,
>which, when parsed, causes a UnicodeEncodeError:
>
>'charmap' codec can't encode character '\u012b' in position 26:
>character maps to
>
>This happens even when I a
Hello,
I am using Python 3.0b2.
I have an XML file that has the unicode character '\u012b' in it,
which, when parsed, causes a UnicodeEncodeError:
'charmap' codec can't encode character '\u012b' in position 26:
character maps to
This happens even when I assign this character to a reference in t