title: How to transform a language specific string into string with python: str(ñ)
body: <p>Im writting some code to parse text, and in one of the variables, I can have text or integers, so in order to print it, I do str:</p>
  
  <pre><code>Variable=str(input)
  </code></pre>
  
  <p>It works fine, but if input contains a language-specific char: "ñ", it wont work, throwing the following error:</p>
  
  <pre><code>UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 9: ordinal not in range(128)
  </code></pre>
  
  <p>How to avoid this?</p>