# Ansible remove accent

**URL:** <https://forum.ansible.com/t/ansible-remove-accent/36525>\
**Category:** Ansible Project\
**Created:** [April 12, 2022, 3:59pm UTC](https://forum.ansible.com/t/ansible-remove-accent/36525 "2022-04-12T15:59:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabz\_Modz](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Post date:** [April 12, 2022, 3:59pm UTC](https://forum.ansible.com/t/ansible-remove-accent/36525/1 "2022-04-12T15:59:09Z")

</div>

Hello 🙂

I have a playbook that generates the creation of an AD account, it works very well.

Example:  
The account of Toto PIERRE with the email address toto.pierre@labo.lab is created correctly.

The account of Médéric GOT with the email address médéric.got@labo.lab the samacount is created with an accent “é”, is there a method like CAPITALIZE or UPPER ect… which allows to remove the accent of the “é” by “e”?

Thanks in advance !

Translated with [www.DeepL.com/Translator](http://www.DeepL.com/Translator) (free version)

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [April 12, 2022, 4:08pm UTC](https://forum.ansible.com/t/ansible-remove-accent/36525/2 "2022-04-12T16:08:24Z")

</div>

> Hello 🙂
> 
> I have a playbook that generates the creation of an AD account, it works  
> very well.

... for a restricted input data set ...

> Example:  
> The account of Toto PIERRE with the email address toto.pierre@labo.lab is  
> created correctly.
> 
> The account of Médéric GOT with the email address médéric.got@labo.lab the  
> samacount is created with an accent "é", is there a method like CAPITALIZE  
> or UPPER ect... which allows to remove the accent of the "é" by "e"?

I would suggest that it is not a good assumption that everybody's email  
address is FirstName.LastName@Domain.TLD

I think you should be supplying two separate items of data to ansible for this  
process:

1. The person's name  
2. The person's email address

For example, what would your current system try to do with:

a) Marcus du Sautoy  
b) Ed O'Brien  
c) Madonna  
d) John Smith (Sales) and John Smith (Development)  
e) Tony Leung Chiu-wai (whose surname is Leung)

Antony.
