Title: bug
Last modified: August 31, 2016

---

# bug

 *  [onirgoc](https://wordpress.org/support/users/onirgoc/)
 * (@onirgoc)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-142/)
 * Hello,
 * found a little bug with a walkaround:
 * when creating a new user role with accent like “Intermédiaire” the role name 
   become “intermdiaire”… “é” is not replace by equivalent “e”.
 * The way to manage this is to create the user role like “Intermediaire” (without
   accent), it will create user role “intermediaire” then rename user role to “Intermédiaire”:
   you keep the right user role name and the nice display user name.
 * But…if you can correct this…very easy (already done this for one of my custom
   code) let say the user role is under var “$beta”:
 *     ```
       $beta = utf8_decode($start);
       $beta = trim(strip_tags($beta));
       $beta_without_accent = strtr($beta, utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
       $beta_with_minuscule = strtolower($beta_without_accent);
       $beta_with_underscore = str_replace(' - ', '_', $beta_with_minuscule); // for me...probably different in your case ?
       ```
   
 * Hope it help. 🙂
 * [https://wordpress.org/plugins/wpfront-user-role-editor/](https://wordpress.org/plugins/wpfront-user-role-editor/)

The topic ‘bug’ is closed to new replies.

 * ![](https://ps.w.org/wpfront-user-role-editor/assets/icon.svg?rev=1022723)
 * [WPFront User Role Editor](https://wordpress.org/plugins/wpfront-user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpfront-user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpfront-user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/wpfront-user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpfront-user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpfront-user-role-editor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [onirgoc](https://wordpress.org/support/users/onirgoc/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/bug-142/)
 * Status: not resolved