# ansible-playbook crash when variable file contains accented characters

**URL:** <https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215>\
**Category:** Ansible Project\
**Created:** [July 29, 2013, 8:22pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215 "2013-07-29T20:22:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_Thibault](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@Pierre\_Thibault](https://forum.ansible.com/u/Pierre_Thibault)\
**Post date:** [July 29, 2013, 8:22pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215/1 "2013-07-29T20:22:44Z")

</div>

Hello,

I have a problem with Ansible 1.2.2 when a variable file contains accented characters.

Here is the error I have:

fatal: [192.241.148.29] =\> Traceback (most recent call last):  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 364, in \_executor  
exec\_rc = self.\_executor\_internal(host, new\_stdin)  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 443, in \_executor\_internal  
return self.\_executor\_internal\_inner(host, self.module\_name, self.module\_args, inject, port, complex\_args=complex\_args)  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 597, in \_executor\_internal\_inner  
result = handler.run(conn, tmp, module\_name, module\_args, inject, complex\_args)  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/action\_plugins/normal.py”, line 54, in run  
return self.runner.\_execute\_module(conn, tmp, module\_name, module\_args, inject=inject, complex\_args=complex\_args)  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 282, in \_execute\_module  
(remote\_module\_path, module\_style, shebang) = self.\_copy\_module(conn, tmp, module\_name, args, inject, complex\_args)  
File “/home/pierre/.virtualenvs/ansel2\_testing/local/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 746, in \_copy\_module  
encoded\_args = repr(str(module\_args))  
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe9’ in position 11: ordinal not in range(128)

I believe I was not having this problem with Ansible 1.1.

If I remove the accented character, everything is fine (I am in the ASCII range).

Could you check? Thank you.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 29, 2013, 8:59pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215/2 "2013-07-29T20:59:20Z")

</div>

Thanks, does the same problem occur in 1.3 devel?

Can you share your variable file and how you are using it in the playbook?

---

<div class="post-metadata">

**Author:** ![Pierre\_Thibault](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@Pierre\_Thibault](https://forum.ansible.com/u/Pierre_Thibault)\
**Post date:** [July 29, 2013, 9:13pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215/3 "2013-07-29T21:13:13Z")

</div>

Hello Michael,

I did a test with ‘devel’ and the bug is gone! So, is more information needed?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [July 29, 2013, 9:21pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215/4 "2013-07-29T21:21:58Z")

</div>

I think we are ok.

We are probably not going to do another dot release since 1.3 is slated for the end of the month, and lots of folks run from development head nearly full time.

- = ordinarily this would be earlier, but I want to align ourselves back towards the end of the month again versus arbitrarily in the middle, and it seems right to get some more major features in core Ansible too.
