Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'subject:text': 0.05; 'memory.': 0.07; 'mysql,': 0.07; 'broke': 0.09; 'mysql.': 0.09; 'postgres': 0.09; 'subject:question': 0.10; 'python': 0.11; '>does': 0.16; '>that': 0.16; 'buggy': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'simpson': 0.16; 'throw': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'advise.': 0.24; 'unicode': 0.24; 'earlier': 0.24; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'characters': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'with,': 0.31; 'could': 0.34; 'problem': 0.35; 'agree': 0.35; 'possible.': 0.35; 'problem.': 0.35; 'there': 0.35; 'done': 0.36; 'doing': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'wrong': 0.37; 'to:addr :python-list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'simply': 0.61; 'content-disposition:inline': 0.62; 'name': 0.63; 'choose': 0.64; 'details': 0.65; 'customers': 0.66; 'due': 0.66; 'here': 0.66; '>from': 0.68; 'containing': 0.69; 'records': 0.73; 'pleasure': 0.74; 'million': 0.74; 'received:192.168.15': 0.84; 'words)': 0.84; 'demand': 0.91 Date: Mon, 9 Mar 2015 13:09:22 +1100 From: Cameron Simpson To: python-list@python.org Subject: Re: Newbie question about text encoding MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <54fadc70$0$13004$c3e8da3$5496439d@news.astraweb.com> User-Agent: Mutt/1.5.23 (2014-03-12) References: <54fadc70$0$13004$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425866969 news.xs4all.nl 2976 [2001:888:2000:d::a6]:38766 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!news.ecp.fr!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:87168 On 07Mar2015 22:09, Steven D'Aprano wrote: >Rustom Mody wrote: >>[...big snip...] >> Some parts are here some earlier and from my memory. >> If details wrong please correct: >> - 200 million records >> - Containing 4 strings with SMP characters >> - System made with python and mysql. SMP works with python, breaks mysql. >> So whole system broke due to those 4 in 200,000,000 records > >No, they broke because MySQL has buggy Unicode handling. [...] >> You could also choose do with "astral crap" (Roy's words) what we all do >> with crap -- throw it out as early as possible. > >And when Roy's customers demand that his product support emoji, or complain >that they cannot spell their own name because of his parochial and ignorant >idea of "crap", perhaps he will consider doing what he should have done >from the beginning: > >Stop using MySQL, which is a joke of a database[1], and use Postgres which >does not have this problem. > >[1] So I have been told. I use MySQL a fair bit, and Postgres very slightly. I would agree with your characterisation above; MySQL is littered with inconsistencies and arbitrary breakage, both in tools and SQL implementation. And Postgres has been a pure pleasure to work with, little though I have done that so far. Cheers, Cameron Simpson There is no human problem which could not be solved if people would simply do as I advise. - Gore Vidal