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


Groups > comp.lang.python > #52958

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

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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; 'scripts': 0.03; 'class,': 0.07; 'redirected': 0.07; 'received:internal': 0.09; 'python': 0.11; 'question.': 0.14; '(via': 0.16; '24,': 0.16; 'invoking': 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; 'text?': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'aug': 0.22; 'print': 0.22; 'specify': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; "doesn't": 0.30; 'statement': 0.30; 'subject:from': 0.34; 'received:66': 0.35; 'there': 0.35; 'c++': 0.36; 'received:10': 0.37; 'to:addr:python- list': 0.38; 'does': 0.39; 'embedded': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'subject: / ': 0.60; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'real': 0.63; 'within': 0.65; 'subject:get': 0.81; '2013,': 0.91; 'involved.': 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:in-reply-to:references:subject:date; s=mesmtp; bh= DIfCby1OatasHV0FH3QnIxTqs1k=; b=oB8MozNHWbVRAoYZs6t7G7yMLi2xIcUs b19kTSC3YDGnpN9xnifFlCVVqxCWP+7APaxrI3rX9uCqOOKNtkdgWuyx7AnS/+n9 h0eBJyoOcTSkrFY8BKFp9WyFDCzKdcA32IKWfFFEFUkBWhU7ZM+xfJ6lbZbwNzlD 41c4Q3hd0uE=
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:in-reply-to:references :subject:date; s=smtpout; bh=DIfCby1OatasHV0FH3QnIxTqs1k=; b=YTp 7ZLJDbm6zesiiNhlQdEDB5HHX9mrpCl9/22iEtP5w1NWuSWwYv4oFMRS9zgng6cz vWewI3nOLQMf0NcG4S/ZVbQod0Tpiy80MNkfLKtwkxxm6pDQuP8S4lmJlKPU3vo4 MGPLGXA5tQMraNq93M9hXOdCDVQrgt4zFL9rxvFQ=
X-Sasl-Enc E2V+GBfXIH1+Wz9xChw+tkTyxRtZAmXGtoom5Wu3M9Dv 1377388895
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
In-Reply-To <d3e52d5b-84c9-4cb4-84bf-cbdd886425b1@googlegroups.com>
References <fbeee40a-bc8a-4cef-abe7-2b2d54f59625@googlegroups.com> <d3e52d5b-84c9-4cb4-84bf-cbdd886425b1@googlegroups.com>
Subject Re: can't get utf8 / unicode strings from embedded python
Date Sat, 24 Aug 2013 20:01:35 -0400
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.204.1377388898.19984.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377388898 news.xs4all.nl 15880 [2001:888:2000:d::a6]:33643
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52958

Show key headers only | View raw


On Sat, Aug 24, 2013, at 12:47, David M. Cotter wrote:
> > What _are_ you using? 
> i have scripts in a file, that i am invoking into my embedded python
> within a C++ program.  there is no terminal involved.  the "print"
> statement has been redirected (via sys.stdout) to my custom print class,
> which does not specify "encoding", so i tried the suggestion above to set
> it:

That doesn't answer my real question. What does your "custom print
class" do with the text?

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