<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>mikeash.com pyblog/unicode-comments-support.html comments</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>mikeash.com Recent Comments</description><lastBuildDate>Sat, 06 Jun 2026 20:25:26 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Gaurav sharma - 2009-10-20 12:53:33</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>&amp;amp;amp;</description><guid isPermaLink="true">c2249209343ab488c055da76368f04a0</guid><pubDate>Tue, 20 Oct 2009 12:53:33 GMT</pubDate></item><item><title>MoMolog - 2009-10-16 10:52:45</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Это правда. Отлично!
&lt;br /&gt;</description><guid isPermaLink="true">5c5c6cd8425c12bb96005e3220c7a3a6</guid><pubDate>Fri, 16 Oct 2009 10:52:45 GMT</pubDate></item><item><title>Cy - 2009-09-15 15:44:36</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Interesting... so now I can say: España! </description><guid isPermaLink="true">9a156d16d3432b2c7ebcde743da27cd5</guid><pubDate>Tue, 15 Sep 2009 15:44:36 GMT</pubDate></item><item><title>Pierre Lebeaupin - 2009-08-28 13:37:37</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Voyons voir si ça marche… Désolé, sur un PC, donc pas accès à tout ce que je voudrais. À part ça, pas de problème. Cœur. €. « Pardon ? » lui dit-elle.</description><guid isPermaLink="true">3d670f85c417d9d1cb8b34156dcda344</guid><pubDate>Fri, 28 Aug 2009 13:37:37 GMT</pubDate></item><item><title>Jean-Daniel Dupas - 2009-08-26 20:56:35</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Welcome to the wonderful world of Unicode and MySQL.
&lt;br /&gt;It's one of many reasons why i never used MySQL, but under menace. I'm usually using Postgres when I need a full features, multi-clients database and SQLite for simpler needs :-)
&lt;br /&gt;</description><guid isPermaLink="true">a959ce97a38c416d7c406e8b50edec7b</guid><pubDate>Wed, 26 Aug 2009 20:56:35 GMT</pubDate></item><item><title>Augie Fackler - 2009-08-24 15:18:18</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>I've actually seen lots of problems with MySQL and Unicode - in general, you have to do the right dance when you make the database or else it'll fail miserably on the unicode characters.</description><guid isPermaLink="true">afa7c5814ac33493f3d0c7d902ac2907</guid><pubDate>Mon, 24 Aug 2009 15:18:18 GMT</pubDate></item><item><title>Pádraig Brady - 2009-08-24 09:36:53</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>There seem to be no end of problems with text encodings and MySQL. It's at least hard to configure but never having used MySQL myself I don't know the details. Here's an example of madness coming from a MySQL database configured by someone who knows about this stuff: &lt;a href="http://www.pixelbeat.org/docs/unicode_utils/"&gt;http://www.pixelbeat.org/docs/unicode_utils/&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;cheers,
&lt;br /&gt;Pádraig.</description><guid isPermaLink="true">326719f289b75aedb4c0d0f2a7bd3622</guid><pubDate>Mon, 24 Aug 2009 09:36:53 GMT</pubDate></item><item><title>mikeash - 2009-08-23 12:53:41</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Believe me, I tried that. I tried everything. Nothing worked. I believe that it can work, but it would not work for &lt;i&gt;me&lt;/i&gt;. I have no idea where the error was (which was a big part of the difficulty; it's hard to fix things when you don't know where the problem is) I just know that I couldn't make it work after a lot of trying.
&lt;br /&gt;
&lt;br /&gt;Plus, SQLite is easier to work with and easier to back up, so, bonus!</description><guid isPermaLink="true">e5fa06587e49d152219465273360ef11</guid><pubDate>Sun, 23 Aug 2009 12:53:41 GMT</pubDate></item><item><title>nils - 2009-08-23 08:13:02</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>normally you should only have to supply a charset on connect (&lt;i&gt; connect(..., charset="utf8")&lt;/i&gt;) an then throw &lt;i&gt;unicode&lt;/i&gt; objects at it and the whole stuff should be converted automatically
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;@astrange: Well utf8 takes the same storage space as latin1 unless you use non-ASCII chars.</description><guid isPermaLink="true">8b7e1899d01ea8f7548dfcc4df72d0d8</guid><pubDate>Sun, 23 Aug 2009 08:13:02 GMT</pubDate></item><item><title>mikeash - 2009-08-23 05:17:02</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Could very well have been in the Python MySQLdb module, rather than in MySQL itself. I really don't know. I know I tried a lot of things on both sides and nothing ended up working.
&lt;br /&gt;
&lt;br /&gt;I don't parse entities. Everything you write gets HTML escaped except for a very small, predefined set of known tags. There's just too much guesswork involved as to whether you want unichar 8238 or whether you want ampersand, hash mark, digit eight, etc.</description><guid isPermaLink="true">20f21a26d6ece860aa22666a3c99a2ec</guid><pubDate>Sun, 23 Aug 2009 05:17:02 GMT</pubDate></item><item><title>astrange - 2009-08-23 05:07:45</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Hmm, sounds more like a Python-side problem. You can store all the arbitrary bytes you want in MySQL text no matter the collation; I never bother changing from latin1, since it takes half the storage space (unless your script is smaller in UTF16) and I don't need fulltext indexes. But a DB library might try to do charset conversion from that.
&lt;br /&gt;
&lt;br /&gt;Does &amp;amp;#8238; work?
&lt;br /&gt;</description><guid isPermaLink="true">a6b6205feb26539eda6a58ff963c073b</guid><pubDate>Sun, 23 Aug 2009 05:07:45 GMT</pubDate></item><item><title>mikeash - 2009-08-23 04:58:33</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Téstïng 1, 2, 3....
&lt;br /&gt;
&lt;br /&gt;再见。</description><guid isPermaLink="true">485f36108bc32d8107db86591bca80fb</guid><pubDate>Sun, 23 Aug 2009 04:58:33 GMT</pubDate></item><item><title>mikeash - 2009-08-22 23:25:41</title><link>http://www.mikeash.com/?page=pyblog/unicode-comments-support.html#comments</link><description>Well, found one bug already: my timestamps were being generated in local (Pacific) time but displayed as if they were GMT. Result: posts in the future! Got it fixed now. Oops.</description><guid isPermaLink="true">b5f47ac0045b97e33645ea3576a1370c</guid><pubDate>Sat, 22 Aug 2009 23:25:41 GMT</pubDate></item></channel></rss>
