<div dir="ltr"><div><div><div><div><div><div><div><div>I am using IDLE, Python 2.7.2 on Windows 7, 64-bit.<br></div><div><br>I have four questions:<br></div><div><br>1. Why is it that<br>     print unicode_object<br></div>
displays non-ASCII characters in the unicode object correctly, whereas<br></div>     print (unicode_object, another_unicode_object)<br></div>displays non-ASCII characters in the unicode objects as escape sequences (as repr() does)?<br>
<br></div>2. Given that this is actually <i>deliberately </i>the case (which I, at the moment, am finding difficult to accept), what is the neatest (that is, the most Pythonic) way to get non-ASCII characters in unicode objects in tuples displayed correctly?<br>
<br></div>3. A similar thing happens when I write such objects and tuples to a file opened by<br>     codecs.open ( ..., "utf-8")<br></div>I have also found that, even though I use  write  to send the text to the file, unicode objects not in tuples get their non-ASCII characters sent to the file correctly, whereas, unicode objects in tuples get their characters sent to the file as escape sequences. Why is this the case?<br>
<br></div>4. As for question 1 above, I ask here also: What is the neatest way to get round this?<br><br></div>Stephen Tucker.<br><br></div>