Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56700

Re: Unicode Objects in Tuples

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Piet van Oostrum <piet@vanoostrum.org>
Newsgroups comp.lang.python
Subject Re: Unicode Objects in Tuples
Date Fri, 11 Oct 2013 14:44:42 -0400
Lines 15
Message-ID <m2a9ifsl45.fsf@cochabamba.vanoostrum.org> (permalink)
References <CAP=-cKU6Xkt_rm4VYh7NfXLSfUDG7FZQXHz+U12gP6fbkdhxbQ@mail.gmail.com> <5257C35C.4070407@nedbatchelder.com> <mailman.1004.1381499974.18130.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace individual.net s11sXVSrksbaNvxwok2dXAo2yPE+GZc7H6B5KIM6LmdSH7Ov58
Cancel-Lock sha1:fGRPxPJBf1/Dy5JhyHheeYIXyOg= sha1:a7g0L3ijcghaStVioS1BMnz4dHU=
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin)
Xref csiph.com comp.lang.python:56700

Show key headers only | View raw


Stephen Tucker <stephen_tucker@sil.org> writes:

> ESRI compound the problem, actually, by making all the strings that the ArcGIS Python interface
> delivers (from MS SQLServer) Unicode! (I suppose, on reflection, they have no choice.) So I am
> stuck with the worst of both worlds - a generation of Python (2.X) that is inept at handling
> unicode (on an operating system (MS Windows 7) that is not much better, and being flooded with
> unicode strings from my users' databases! Anything you can come up with to ease all this (like,
> "convert all your strings to unicode as soon as you can and render them as ASCII as late as you
> can") has already been of help.

I wouldn't say that Python 2.x is inept at handling Unicode. You just have to know what you are doing. But that's also true for Python 3.x, although that give you a bit more help. But you can do everything you want with 2.x, I think.
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Unicode Objects in Tuples Stephen Tucker <stephen_tucker@sil.org> - 2013-10-11 14:31 +0100
  Re: Unicode Objects in Tuples Piet van Oostrum <piet@vanoostrum.org> - 2013-10-11 14:44 -0400

csiph-web