python 2.6 - print French characters
<p>My question regarding printing French characters with python 2.6. 
There is no problems when I use python 3.4 but I need using python 2.6!
Instead of sociÃ©tÃ© mÃ¨re I've got sociÃÂ©tÃÂ© mÃÂ¨re etc.
I already tried:</p>

<pre><code>#!/usr/bin/python
# coding=utf-8
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: iso-8859-1 -*-
</code></pre>

<p>without success.
I create a .csv file and need to fill headings with French titles. Also, some French characters will be input from .xml file.</p>

<p>Thanks in advance</p>

<p>Try prefixing your string literals with u:</p>

<pre><code>print u'sociÃ©tÃ© mÃ¨re'
</code></pre>

<p>Docs: <a href="https://docs.python.org/2/howto/unicode.html" rel="nofollow">https://docs.python.org/2/howto/unicode.html</a></p>

python python-2.6 non-ascii-characters