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


Groups > comp.lang.python > #52940

Re: can't get utf8 / unicode strings from embedded python

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'encoding': 0.05; 'bytes,': 0.09; 'converted': 0.09; 'received:internal': 0.09; 'specified,': 0.09; '24,': 0.16; 'delimiters': 0.16; 'golden': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:unicode': 0.16; 'unicode,': 0.16; 'utf8': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'ticket': 0.19; 'seems': 0.21; 'aug': 0.22; 'header:In- Reply-To:1': 0.27; "i'm": 0.30; 'getting': 0.31; 'flying': 0.31; 'subject:from': 0.34; 'received:66': 0.35; 'but': 0.35; 'so,': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'subject: / ': 0.60; 'from:no real name:2**0': 0.61; "you're": 0.61; 'header:Message-Id:1': 0.63; 'results': 0.69; 'subject:get': 0.81; 'huh?': 0.84; '2013,': 0.91
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date:in-reply-to:references; s=mesmtp; bh= PUR1vfqLb6E/Kt7mKjOSStcrZrU=; b=EnxpX938qJ4Dc2N4vYqM4i1mVYhO3+hO TlBmrOIM09aNDglWttwdvQwnpAvWp/rFOMMk0N5um3nQ6HWcNJRyxwEATEr0ct52 8PUsr8+zLUi9ZM9x3KhwSPg/3g2KkTCU8mM2lFD2Sz8EkJza34Yd7KfQwui11Oqs n9hDwKaZ9Qo=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=PUR1vfqLb6E/Kt7mKjOSStcrZrU=; b=ZI6FA KDSiHTb4c0wGpVHj01aCjJKgDOkicPr8vSFu0fyxXtERTRMVaFXe8hO4t0qCM+0X 274xn0YiThYP6cWAfrQlbFy8YcyfhuAsVHs4oU0zfP6Ndz7Q/SmnZueBe6iILlLW 59AuK23nSI94M0XOqArXaD4CZAmGZ0ksiK0cs0=
X-Sasl-Enc 2MVW7m5+IEuwBwJeeSwwDvue9k6eHt7jQGt2ipnVDA8P 1377352171
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-d009844e
Subject Re: can't get utf8 / unicode strings from embedded python
Date Sat, 24 Aug 2013 09:49:31 -0400
In-Reply-To <d16f50e3-3e8b-428c-8f84-99bdbf6d73eb@googlegroups.com>
References <fbeee40a-bc8a-4cef-abe7-2b2d54f59625@googlegroups.com> <d16f50e3-3e8b-428c-8f84-99bdbf6d73eb@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.195.1377352173.19984.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377352173 news.xs4all.nl 15934 [2001:888:2000:d::a6]:36881
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52940

Show key headers only | View raw


On Sat, Aug 24, 2013, at 2:45, David M. Cotter wrote:
> > you need to use u" ... " delimiters for Unicode, otherwise the results you get are completely arbitrary and depend on the encoding of your terminal. 
> okay, well, i'm on a mac, and not using "terminal" at all.  but if i
> were, it would be utf8
> but it's still not flying :(

> so, it seems that i AM getting my utf8 bytes, but i'm getting them
> converted to macRoman.  huh?  where is macRoman specified, and how to i
> change that to utf8?  i think that's the missing golden ticket

You say you're not using terminal. What _are_ you using?

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


Thread

can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-23 13:49 -0700
  Re: can't get utf8 / unicode strings from embedded python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-24 01:54 +0000
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-23 23:45 -0700
    Re: can't get utf8 / unicode strings from embedded python Dave Angel <davea@davea.name> - 2013-08-24 07:04 +0000
    Re: can't get utf8 / unicode strings from embedded python random832@fastmail.us - 2013-08-24 09:49 -0400
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-24 09:47 -0700
    Re: can't get utf8 / unicode strings from embedded python wxjmfauth@gmail.com - 2013-08-24 11:31 -0700
    Re: can't get utf8 / unicode strings from embedded python Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-08-24 12:45 -0700
    Re: can't get utf8 / unicode strings from embedded python random832@fastmail.us - 2013-08-24 20:01 -0400
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-25 10:57 -0700
    Re: can't get utf8 / unicode strings from embedded python Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-08-25 20:23 +0200
    Re: can't get utf8 / unicode strings from embedded python Terry Reedy <tjreedy@udel.edu> - 2013-08-25 14:59 -0400
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-25 15:25 -0700
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-25 15:32 -0700
    Re: can't get utf8 / unicode strings from embedded python MRAB <python@mrabarnett.plus.com> - 2013-08-26 01:30 +0100
      Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-27 15:21 -0700
        Re: can't get utf8 / unicode strings from embedded python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-27 23:24 +0000
          Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-27 22:57 -0700
            Re: can't get utf8 / unicode strings from embedded python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-28 12:03 +0000
  Re: can't get utf8 / unicode strings from embedded python "David M. Cotter" <me@davecotter.com> - 2013-08-28 10:46 -0700

csiph-web