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: 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: References: 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: 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 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?