Skip to main content

US-ASCII transliterations of Unicode text

Project description

ASCII transliterations of Unicode text

Example Use

from unidecode import unidecode
print unidecode(u"\u5317\u4EB0")

# That prints: Bei Jing

Description

It often happens that you have non-Roman text data in Unicode, but you can’t display it – usually because you’re trying to show it to a user via an application that doesn’t support Unicode, or because the fonts you need aren’t accessible. You could represent the Unicode characters as “???????” or ” BA A0q0…”, but that’s nearly useless to the user who actually wants to read what the text says.

What Unidecode provides is a function, ‘unidecode(…)’ that takes Unicode data and tries to represent it in ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F). The representation is almost always an attempt at transliteration – i.e., conveying, in Roman letters, the pronunciation expressed by the text in some other writing system. (See the example above)

This is a Python port of Text::Unidecode Perl module by Sean M. Burke <sburke@cpan.org>.

Project details


Release history Release notifications

History Node

1.0.22

History Node

0.04.21

History Node

0.04.20

History Node

0.04.19

History Node

0.04.18

History Node

0.04.17

History Node

0.04.16

History Node

0.04.14

History Node

0.04.13

History Node

0.04.12

History Node

0.04.11

History Node

0.04.10

History Node

0.04.9

History Node

0.04.8

History Node

0.04.7

History Node

0.04.6

This version
History Node

0.04.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Unidecode-0.04.1-py2.6.egg (397.1 kB) Copy SHA256 hash SHA256 Egg 2.6 Jun 17, 2009
Unidecode-0.04.1.tar.gz (167.0 kB) Copy SHA256 hash SHA256 Source None Jun 17, 2009
Unidecode-0.04.5.tar.gz (186.6 kB) Copy SHA256 hash SHA256 Source None Oct 15, 2010

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page