Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:08:22+00:00 2026-06-18T07:08:22+00:00

On the API doc, http://docs.python.org/2/library/unicodedata.html#unicodedata.normalize . It says Return the normal form form for

  • 0

On the API doc, http://docs.python.org/2/library/unicodedata.html#unicodedata.normalize. It says

Return the normal form form for the Unicode string unistr. Valid values for form are ‘NFC’, ‘NFKC’, ‘NFD’, and ‘NFKD’.`

The documentation is rather vague, can someone explain the valid values with some examples?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:08:23+00:00Added an answer on June 18, 2026 at 7:08 am

    I find the documentation pretty clear, but here are a few code examples:

    from unicodedata import normalize
    
    print '%r' % normalize('NFD', u'\u00C7')  # decompose: convert Ç to "C + ̧"
    print '%r' % normalize('NFC', u'C\u0327') # compose: convert "C + ̧" to Ç
    

    Both ‘D’ (=decompose) forms convert a single combined character (like ä) into two characters (a + two dots). Both ‘C’ (=compose) forms do the reverse.

    The two “K” forms are used to convert characters added to Unicode for compatibility purposes. For example, to support software that cannot draw circles around symbols, there is a set of “circled numbers”, like ① (unicode number 2460). When we apply the canonical decomposition (NFD) to it, it doesn’t do anything:

    print '%r' % normalize('NFD', u'\u2460')     # u'\u2460'
    

    However, the compatibility decomposition (NFKD) will return the corresponding “compatible” character:

    print '%r' % normalize('NFKD', u'\u2460')    # 1
    

    See http://en.wikipedia.org/wiki/Unicode_equivalence for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to doc, calendar set() is: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Calendar.html#set%28int,%20int,%20int%29 set(int year, int month, int date) Sets
In the YUI documentation; http://yuilibrary.com/yui/docs/api/files/dom_js_dom-create.js.html if (nodes.length === 1) { // return single node,
From the libxml-ruby API docs ( http://libxml.rubyforge.org/rdoc/index.html ), under LibXML::XML::Document, I tried the following:
Like described in the docs.. http://download1.parallels.net/Plesk/PP10/10.2.0/Doc/en-US/online/plesk-api-rpc/index.htm?fileName=53497.htm It should be possible to change the home-location
So taking a look at the API doc page here: http://developers.facebook.com/docs/reference/javascript/FB.api I'm wondering if
Take the PriorityQueue for example http://java.sun.com/j2se/1.5.0/docs/api/java/util/PriorityQueue.html#offer(E) Can anyone give me an example of a
First, check out this document first: http://htmlcleaner.sourceforge.net/doc/org/htmlcleaner/TagNode.html It have a function called: getAllElementsList(boolean isRecursive).
i just got an account at: http://www.whoisxmlapi.com/index.php#/whois-api-doc.php?rid=1 ive never parsed XML with c#, how
It seems http://api.rubyonrails.org/ is not for rails 3. Where can I get the api
I'm trying to use geolocation using PhoneGap API doc, geolocation works on the index.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.