Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.070 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'received:localnet': 0.09; 'thx': 0.09; 'python': 0.11; 'jan': 0.12; '3.1.3': 0.16; 'januar': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'thu,': 0.19; 'written': 0.21; '(the': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'unicode': 0.24; 'connected': 0.24; 'sort': 0.25; "i've": 0.25; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'scanned': 0.29; 'strongly': 0.30; "i'm": 0.30; 'getting': 0.31; 'becoming': 0.31; 'run': 0.32; 'subject:with': 0.35; 'received:84': 0.35; 'but': 0.35; 'everyone.': 0.36; 'minutes,': 0.36; 'so,': 0.37; 'server': 0.38; 'stable': 0.38; 'to:addr:python-list': 0.38; 'previous': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'unable': 0.39; 'how': 0.40; 'most': 0.60; 'new': 0.61; 'matter': 0.61; 'first': 0.61; 'realized': 0.68; '2014,': 0.84; 'desperate': 0.84; 'does?': 0.84; 'florian': 0.84; 'lot,': 0.93 From: Florian Lindner To: python-list@python.org Subject: Re: Trouble with UnicodeEncodeError and email Date: Wed, 08 Jan 2014 19:09:19 +0100 User-Agent: KMail/4.12 (Linux/3.12.6-1-ARCH; KDE/4.12.0; x86_64; ; ) In-Reply-To: References: <1566196.GRmDzgaeKX@horus> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389204562 news.xs4all.nl 2832 [2001:888:2000:d::a6]:37919 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63503 Am Donnerstag, 9. Januar 2014, 00:26:15 schrieb Chris Angelico: > On Thu, Jan 9, 2014 at 12:14 AM, Florian Lindner wrote: > > I've written some tiny script using Python 3 and it used to work perfectly. Then I realized it needs to run on my Debian Stable server too, which offers only Python 2. Ok, most backporting was a matter of minutes, but I'm becoming desperate on some Unicode error... > > Are you sure it does? The current Debian stable is Wheezy, which comes > with a package 'python3' in the repository, which will install 3.2.3. > (The previous Debian stable, Squeeze, has 3.1.3 under the same name.) > You may need to change your shebang, but that's all you'd need to do. > Or are you unable to install new packages? If so, I strongly recommend > getting Python 3 added, as it's going to spare you a lot of Unicode > headaches. > > Mind you, I compile my own Py3 for Wheezy, since I like to be on the > bleeding edge. But that's not for everyone. :) Well, I thought I had scanned to repos but obviously... I had to install BeautifulSoup and scikit-learn manually. Now some other Unicode issues have arised, but I need to sort them out first how they are connected to my mail delivery agent. Thx a lot, Florian