Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140111/de7a87bb/attachment.html below:
<div dir="ltr"><div>Now I feel it is bad thing that encouraging using unicode for binary with latin-1 encoding or surrogateescape errorhandler.<br><br></div>Handling binary data in str type using latin-1 is just a hack.<br>
<div><div>Surrogateescape is just a workaround to keep undecodable bytes in text.<br></div></div><div><br>Encouraging binary data in str type with latin-1 or surrogateescape means<br></div><div>encourage mixing binary and text data.<br>
</div><div>It is worth than Python 2.<br></div><br><div>So Python should encourage handling binary data in bytes type.<br><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 11:28 PM, MatÄj Cepl <span dir="ltr"><<a href="mailto:matej@ceplovi.cz" target="_blank">matej@ceplovi.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 2014-01-10, 12:19 GMT, you wrote:<br>
> Using the 'latin-1' to mean unknown encoding can easily result<br>
> in Mojibake (unreadable text) entering your application with<br>
> dangerous effects on your other text data.<br>
><br>
> E.g. "Marc-André" read using 'latin-1' if the string itself<br>
> is encoded as UTF-8 will give you "Marc-André" in your<br>
> application. (Yes, I see that a lot in applications<br>
> and websites I use ;-))<br>
<br>
</div>I am afraid that for most 'latin-1' is just another attempt to<br>
make Unicode complexity go away and the way how to ignore it.<br>
<br>
MatÄj<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.22 (GNU/Linux)<br>
<br>
iD8DBQFS0AOG4J/vJdlkhKwRAgffAKCHn8uMnpZDVSwa2Oat+QI2h32o2wCeJdUN<br>
ZXTbDtiJtJrrhnRPzbgc3dc=<br>
=Pr1X<br>
-----END PGP SIGNATURE-----<br>
<div class=""><div class="h5">_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/songofacandy%40gmail.com" target="_blank">https://mail.python.org/mailman/options/python-dev/songofacandy%40gmail.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>INADA Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>>
</div></div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4