title: How do you set the default encoding in Jenkins?
body: <p>I have a python script that outputs non-ascii characters.
  It works fine from the command line (which has LANG en_US.UTF-8), but once I try to run it in Jenkins (launched from the same shell), it fails in the typical manner of an ascii terminal:</p>
  
  <pre><code>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 37: ordinal not in range(128)
  </code></pre>
  
  <p>I've tried preceeding the script call in the "Execute shell" build step like so:</p>
  
  <pre><code>export LANG=en_US.UTF-8
  </code></pre>
  
  <p>However, it seems to ignore that. Putting the following in my python script:</p>
  
  <pre><code>print "Encoding = %s" % sys.getdefaultencoding()
  </code></pre>
  
  <p>Gives me this, no matter what I do:</p>
  
  <pre><code>Encoding = ascii
  </code></pre>
  
  <p>So is there something that will allow me to force Jenkins to use UTF-8?</p>