Posts

Showing posts with the label diacritics

Keep records with Spanish accents in Database using Python

Keep records with Spanish accents in Database using Python I need to purge a DataBase that is in Spanish but the requirement is that I must keep accent marks. For instance, if the DB contains "Administración" and "Administracion" I have to identify them as equals but keep the one with the accent mark. After some research every solution, like turn Unicode to ASCII or use PyEnchant, keeps the one without the accent mark. Is there any Library (For Python 3.5) or way to determine the correct one and keep it? Once you run your converter on the two inputs, one of them should match the output and the other shouldn't. So just keep the one that doesn't match the sanitized output. – Patrick Haugh May 30 at 15:02 What database are you using? Maybe could be an issue with the databas's driver....