I recommend using Unidecode module:
>>> from unidecode import unidecode
>>> unidecode(u'ıöüç')
'iouc'
Note how you feed it a unicode string and it outputs a byte string. The output is guaranteed to be ASCII.
More Related Contents:
- MySQL “incorrect string value” error when save unicode string in Django
- UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd1 in position 2: ordinal not in range(128)
- Django MEDIA_URL and MEDIA_ROOT
- u’\ufeff’ in Python string
- What is a “slug” in Django?
- How to manage local vs production settings in Django?
- Multiple ModelAdmins/views for same model in Django admin
- how to iterate through dictionary in a dictionary in django template?
- Django Model Field Default Based Off Another Field in Same Model
- Django multi tenancy
- Django – How to make a variable available to all templates?
- Django orm get latest for each group
- How to access the local Django webserver from outside world
- Django persistent database connection
- User Registration with error: no such table: auth_user
- What should I use instead of syncdb in Django 1.9?
- Where does pip install its packages?
- Django Rest Framework – Could not resolve URL for hyperlinked relationship using view name “user-detail”
- Django 1.7 – makemigrations not detecting changes
- How can my Model primary key start with a specific number?
- Has Django served an excess of 100k daily visits? [closed]
- Serving large files ( with high loads ) in Django
- What is the best way to access stored procedures in Django’s ORM
- can’t pip install mysql-python
- How to update manytomany field in Django?
- Django ‘AnonymousUser’ object has no attribute ‘_meta’
- Add “django-admin.py” path to command line on Windows 7
- Django Multiple Databases – relation does not exist; LINE 1: SELECT COUNT(*) AS “__count” FROM
- How do I change the range of the x-axis with datetime?
- How to solve “Page not found (404)” error in Django?