New submission from Stephen Tucker:

If a tuple consists of a single unicode object with non-ASCII characters in it, 
the printing of the tuple causes the non-ASCII characters to appear correctly 
as characters.

If the tuple contains such a unicode object and anything else (even if it 
contains nothing else but two or more such unicode objects), the printing of 
the tuple causes all non-ASCII characters in the objects to appear as their 
"\uxxxx" escapes instead of as their characters.

The same thing happens when writing such tuples to a file that has been opened 
using codecs.open (<filename>, 'w', 'utf-8').

----------
components: Windows
messages: 199308
nosy: Stephen_Tucker
priority: normal
severity: normal
status: open
title: Unicode Objects in Tuples
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19210>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to