Different results using IDLE and running the .py file by double-clicking on it
<p>I am using Python 2.7.3, and in my file, I also use UTF-8 coding.
The source code includes the </p>

<pre><code># -*- coding: utf-8 -*-
</code></pre>

<p>Using a dictionary, the file translates the sentences of a .txt file from english into hungarian. As hungarian has got some extra characters (ex:ű,é,á,Á,Ö,Ó), they appear different if I am using IDLE or simply double-clicking on the .py file.</p>

<p>The input:   </p>

<pre><code>The sun is shining.  
The wind is not blowing.
</code></pre>

<p>Result using IDLE(The good one):  </p>

<pre><code>A nap süt.  
A szél nem fúj.
</code></pre>

<p>Result double-clicking the .py file:  </p>

<pre><code>A nap st.  
A sz‚l nem fŁj.    
</code></pre>

<p>I tried to print the string that contains the results with <code>print &gt;&gt;f2, final</code> and <code>f2.write(final)</code>, but ended up finding no soltuion.  </p>

<p>Thank you in advance!</p>