Skip to main content

US-ASCII transliterations of Unicode text

Project 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.

For example ‘unidecode(u”u5317u4EB0”)’ returns ‘Bei Jing’.

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

Project details


Download files

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

Source Distribution

Unidecode-0.04.6.tar.gz (188.5 kB view details)

Uploaded Source

File details

Details for the file Unidecode-0.04.6.tar.gz.

File metadata

  • Download URL: Unidecode-0.04.6.tar.gz
  • Upload date:
  • Size: 188.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Unidecode-0.04.6.tar.gz
Algorithm Hash digest
SHA256 675147f16e5d1584588cf5ad88d2c2fd71d1b06878ae10ec0c3176dcdfb2310d
MD5 ca5b9cc4de8d215da046b55e8e294151
BLAKE2b-256 8798b66cb1c228f19ea309fbe932ac3d1ccf7dfc40a649f20b6af43a31d71387

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page