# Recent ansibles have issues with unicode?

**URL:** <https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 28, 2014, 2:15am UTC](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348 "2014-05-28T02:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Anderson](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Post date:** [May 28, 2014, 2:15am UTC](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348/1 "2014-05-28T02:15:42Z")

</div>

I was running an earlier 1.7 and was having issues with Ansibles.postgresql and the UnicodeDecodeError. I updated to the most recent devel and now I’m getting it on gathering facts:

PLAY [jenkins] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<54.241.20.52\> ESTABLISH CONNECTION FOR USER: ubuntu  
\<54.241.20.52\> REMOTE\_MODULE setup  
\<54.241.20.52\> EXEC ['ssh', '-C', '-tt', '-q', '-o', 'ForwardAgent=yes', '-o', 'StrictHostKeyChecking=no', '-o', u'IdentityFile=keys/Jenkins.pem', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 'ConnectTimeout=10', u'54.241.20.52', "/bin/sh -c 'mkdir -p /tmp/.ansible/tmp/ansible-tmp-1401243187.48-140618310762629 && chmod a+rx /tmp/.ansible/tmp/ansible-tmp-1401243187.48-140618310762629 && echo /tmp/.ansible/tmp/ansible-tmp-1401243187.48-140618310762629'"]  
Traceback (most recent call last):  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/bin/ansible-playbook", line 317, in \<module\>  
&nbsp;&nbsp;&nbsp;&nbsp;sys.exit(main(sys.argv[1:]))  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/bin/ansible-playbook", line 257, in main  
&nbsp;&nbsp;&nbsp;&nbsp;pb.run()  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 319, in run  
&nbsp;&nbsp;&nbsp;&nbsp;if not self.\_run\_play(play):  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 620, in \_run\_play  
&nbsp;&nbsp;&nbsp;&nbsp;self.\_do\_setup\_step(play)  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 565, in \_do\_setup\_step  
&nbsp;&nbsp;&nbsp;&nbsp;accelerate\_port=play.accelerate\_port,  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/runner/\_\_init\_\_.py", line 1246, in run  
&nbsp;&nbsp;&nbsp;&nbsp;results = [self.\_executor(h, None) for h in hosts]  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/runner/\_\_init\_\_.py", line 552, in \_executor  
&nbsp;&nbsp;&nbsp;&nbsp;self.callbacks.on\_unreachable(host, msg)  
&nbsp;&nbsp;File "/Users/anderson/src/ansible/lib/ansible/callbacks.py", line 464, in on\_unreachable  
&nbsp;&nbsp;&nbsp;&nbsp;msg = "fatal: [%s] =\> %s" % (host, results)  
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 514: ordinal not in range(128)  
(sp\_devops)GoatRodeo:devops anderson (infra/jenkins)$ python --version  
Python 2.7.5  
(sp\_devops)GoatRodeo:devops anderson (infra/jenkins)$ ansible-playbook --version  
ansible-playbook 1.7 (devel ba641de69e) last updated 2014/05/27 22:09:33 (GMT -400)

Regards,  
-scott

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [May 28, 2014, 4:37am UTC](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348/2 "2014-05-28T04:37:10Z")

</div>

Could you open an issue for this on Github? Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 28, 2014, 11:52am UTC](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348/3 "2014-05-28T11:52:04Z")

</div>

If you have a bug, always file the specific bug.

We’ve _fixed_ a lot of issues with Unicode, though it can be occasionally things can creep through.

It would be helpful on the ticket if you can run ./hacking/test-module on the remote system to share what the setup module actually outputs, and either host the attachment or email us with it, so we can use it in reproduction.
