Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95662
| Path | csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'run-time': 0.05; '"c"': 0.07; 'cc:addr:python-list': 0.09; 'apache,': 0.09; 'subject:characters': 0.09; 'subject:script': 0.09; 'python': 0.10; 'encoding': 0.15; 'explicitly': 0.15; 'interpreter': 0.15; 'subject: \n ': 0.15; 'thu,': 0.15; 'differs': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'investigate': 0.16; 'subject:non': 0.16; 'subject:run': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'message- id:@mail.gmail.com': 0.27; 'environment': 0.29; 'run': 0.33; 'problem': 0.33; 'source': 0.33; 'choosing': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'environment.': 0.37; 'why': 0.39; 'subject:-': 0.39; 'matter': 0.63; 'chrisa': 0.84; 'initiates': 0.84; 'researching': 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=rTAjxN5AMT6yh0dyhHAisBwyIxQP4oqX+OUxB5w4Azk=; b=YBuw69rxrkpA9oeQqKbgzOLCjturWuofoQxms/F2OpNm20jKbL/SDm6Q4lWMU8KZ5+ P4fEfj+Pkp6+5xtQ7yAbHZVdJ9e3qta4OSDZpIQm2N/M5imfO/281OQwkye2dNbmtR5Q 5YSWL01gO4u1oyj5yI14Z/TfngzRJmr3pG82L/PboXf/3twG8t4h3AhFhrJKanu80CZi mS0nkbCPaMCy+dsmz9feE9cdV2IAbtNAjEv+ud2fQeSLiYNImWBAYMLZioZiyAhHBRGF pUUBJ2+OgSojj95+cVSxqNN6CdH3I8k9ljGil0m9ad3YGkvA0q2Hw4QgXhGPRo4kXi38 PXeQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.134.146 with SMTP id q18mr4566446ioi.31.1440604677201; Wed, 26 Aug 2015 08:57:57 -0700 (PDT) |
| In-Reply-To | <4fec8570-dfdf-4097-b6e6-c79fbd6e3022@googlegroups.com> |
| References | <c085c6af-31f6-480c-a9b4-90f46441fdd1@googlegroups.com> <4fec8570-dfdf-4097-b6e6-c79fbd6e3022@googlegroups.com> |
| Date | Thu, 27 Aug 2015 01:57:57 +1000 |
| Subject | Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.53.1440604680.11709.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1440604680 news.xs4all.nl 23868 [2001:888:2000:d::a6]:58971 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:95662 |
Show key headers only | View raw
On Thu, Aug 27, 2015 at 1:02 AM, RAH <rene.heymans@gmail.com> wrote: > 7) Now, that source of the problem is known, I must investigate why my run-time environment differs from the interpreter environment. I know it is the same machine, same Python 3.4.0. As the mod_wsgi module in Apache2 initiates Python for the run-time, I will look there around. > First place to look would be the environment. If os.environ["LANG"] has "C" when you run under Apache, that would be the explanation. But explicitly choosing the encoding is the best way for other reasons anyway, and it solves the problem, so researching this is merely a matter of curiosity. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-25 14:19 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Kaynor <ckaynor@zindagigames.com> - 2015-08-25 14:28 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 02:12 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-26 19:24 +1000
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:24 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-26 09:16 +1000
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:18 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run dieter <dieter@handshake.de> - 2015-08-26 07:51 +0200
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:20 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Pete Dowdell <contact@stridebird.com> - 2015-08-26 14:09 +0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:22 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 08:02 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-27 01:57 +1000
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 12:23 -0700
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-27 09:15 +1000
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Marko Rauhamaa <marko@pacujo.net> - 2015-08-27 08:59 +0300
Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-27 07:01 -0700
csiph-web