Created
December 18, 2019 13:14
-
-
Save channprj/beae99da372050f9861f85538aee06bc to your computer and use it in GitHub Desktop.
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
# NO MORE EUC-KR | |
def utf8_to_euc(str): | |
return unicode(str, 'utf-8').encode('euc-kr') | |
def euckr_to_utf8(str): | |
return unicode(str, 'euc-kr').encode('utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment