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: 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: References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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?