Created
April 14, 2016 03:53
-
-
Save spikeekips/bda07e2caeb1a1d10953a6965681bd27 to your computer and use it in GitHub Desktop.
NFC -> NFD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unicodedata | |
nfc_string = '10 [2013010017] \xe1\x84\x89\xe1\x85\xa9\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xab\xe1\x84\x8b\xe1\x85\xb4 KAL\xe1\x84\x80\xe1\x85\xb5 \xe1\x84\x80\xe1\x85\xa7\xe1\x86\xa8\xe1\x84\x8e\xe1\x85\xae\xe1\x84\x89\xe1\x85\xa1\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xab 1\xe1\x84\x8c\xe1\x85\xae\xe1\x84\x82\xe1\x85\xa7\xe1\x86\xab \xe1\x84\x83\xe1\x85\xa2\xe1\x84\x8e\xe1\x85\xa2\xe1\x86\xa8 \xe1\x84\x86\xe1\x85\xb5\xe1\x86\xbe \xe1\x84\x80\xe1\x85\xa1\xe1\x86\xa8\xe1\x84\x80\xe1\x85\xae\xe1\x86\xa8 \xe1\x84\x83\xe1\x85\xa9\xe1\x86\xbc\xe1\x84\x92\xe1\x85\xa3\xe1\x86\xbc, 1984. \xe1\x84\x8c\xe1\x85\xa5\xe1\x86\xab4\xe1\x84\x80\xe1\x85\xaf\xe1\x86\xab(V.3 8.21-9.5).pdf' | |
print unicodedata.normalize('NFC', nfc_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment