How can I convert Extended ASCII characters such as: "æ, ö or ç" into non-extended ASCII characters (a,o,c) using python? The way it works should be that if it takes "A, Æ ,Ä" as input, It returns A for all of them.
            Asked
            
        
        
            Active
            
        
            Viewed 1,497 times
        
    1 Answers
6
            Unidecode might be of use to you.
Python 3.2.3 (default, Jun  8 2012, 05:36:09) 
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from unidecode import unidecode
>>> unidecode("æ, ö or ç")
'ae, o or c'
 
    
    
        riamse
        
- 351
- 1
- 4
- 
                    Looks nice, but isn't there any way to do this in python 2? But this will do to in case there isn't. – madprogramer Mar 28 '13 at 23:15
- 
                    odd, I tried but didn't work. Thanks I'll use the python 3 CODE – madprogramer Mar 28 '13 at 23:29
- 
                    8 years later I can say that this aged well ;) – madprogramer Apr 20 '21 at 17:54
