<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Accentuated Characters in pythonqt</title><link>https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/</link><description>Recent posts to Accentuated Characters in pythonqt</description><atom:link href="https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 07 Jun 2015 13:39:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/feed.rss" rel="self" type="application/rss+xml"/><item><title>Accentuated Characters in pythonqt</title><link>https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Further testing:&lt;/p&gt;
&lt;p&gt;If I am doing print('é') from a py file that I evaluate, no problem upon calling the function.&lt;/p&gt;
&lt;p&gt;When doing &lt;/p&gt;
&lt;p&gt;QString e = QString::fromUtf8("é");&lt;br /&gt;
pythonModule.evalScript(QString("print(%1)").arg(e));&lt;/p&gt;
&lt;p&gt;I get the error message: &lt;br /&gt;
print(�)&lt;br /&gt;
SyntaxError: invalid character in identifier&lt;/p&gt;
&lt;p&gt;But doing:&lt;/p&gt;
&lt;p&gt;pythonModule.evalScript("print('é')");&lt;br /&gt;
pythonModule.evalScript("print('\u00e9')");&lt;/p&gt;
&lt;p&gt;I still get:&lt;br /&gt;
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 0: unexpected end of data&lt;/p&gt;
&lt;p&gt;Typing all these possibilities straight in python console perfectly works, so I assume it is an encoding problem. Any ideas?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Emmanuel Nicolas</dc:creator><pubDate>Sun, 07 Jun 2015 13:39:53 -0000</pubDate><guid>https://sourceforge.netf592902e36ea9e7e644fe0ae6c4a879e2a752d45</guid></item><item><title>Accentuated Characters in pythonqt</title><link>https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I found that this is actually also the case in the PyScriptingConsole example: if you type print('é') in the command line, you end up with the unicode error occurring.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Emmanuel Nicolas</dc:creator><pubDate>Sat, 06 Jun 2015 20:55:56 -0000</pubDate><guid>https://sourceforge.net4a967dcb941a33f8e1a1b183ebbebd4130f4fb5c</guid></item><item><title>Accentuated Characters in pythonqt</title><link>https://sourceforge.net/p/pythonqt/discussion/631393/thread/07c7fcfb/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to send paths from C++ to python, and for this I need to be able to transfer some strings from the main C++ code to the python script. However, I am having trouble with accentuated characters:&lt;/p&gt;
&lt;p&gt;If I execute this code:&lt;br /&gt;
    pythonModule.evalScript(QString("print('Téléchargements')"));&lt;/p&gt;
&lt;p&gt;Then I get the following output from python:&lt;br /&gt;
    File "&amp;lt;string&amp;gt;", line 1:&lt;br /&gt;
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 0: unexpected end of data&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Emmanuel Nicolas</dc:creator><pubDate>Thu, 04 Jun 2015 21:18:03 -0000</pubDate><guid>https://sourceforge.net45ae23a98d9737e77e969168895043f4bfbfddc6</guid></item></channel></rss>