mojibake

In python, how would one change the string 'Nelson Velxc3xa1zquez' to 'Nelson Velazquez'?

In python, how would one change the string 'Nelson Vel\xc3\xa1zquez' to 'Nelson Velazquez'? Question: The issue is with proper encoding. The data type is a string, where the string does not convert the spanish รก properly and instead shows as xc3xa1. How do you convert these to show ‘Nelson Velazquez’? example variable: text = ‘Nelson …

Total answers: 2