Sometimes some letters are displayed incorrectly because files have been misread or formatted.
If the correct Unicode selection doesn’t work, we can use Regular Expressions to replace misread characters with correct letters, numbers or other characters.
In this example we want to replace the distorted german characters into its proper form using Tableau, Alteryx and python.
![](https://www.thedataschool.co.uk/content/images/2022/04/image-175.png)
1. Tableau
In Tableau we can create a Calculated Field and use the REGEXP_Replace function. We have to select a field , a template and a replacement:
![](https://www.thedataschool.co.uk/content/images/2022/04/image-176.png)
We can select multiple templates and replacements for a single field:
![](https://www.thedataschool.co.uk/content/images/2022/04/image-177.png)
Here we see the original and the corrected version:
![](https://www.thedataschool.co.uk/content/images/2022/04/image-178.png)
2. Alteryx
![](https://www.thedataschool.co.uk/content/images/2022/04/image-179.png)
In Alteryx we can correct our characters directly in the fields: by using the Formula-Tool:
![](https://www.thedataschool.co.uk/content/images/2022/04/image-180.png)
Result:
![](https://www.thedataschool.co.uk/content/images/2022/04/image-181.png)
3. Python
If you are using python, you can replace the templates in the whole table without specifying columns:
![](https://www.thedataschool.co.uk/content/images/2022/04/Bildschirmfoto-2022-04-12-um-08.12.23.png)