markdown-it-py
markdown-it-py copied to clipboard
Check code base for UTF-16
@chrisjsewell can you think of any other places in the codebase where this Javascript string (string of UTF-16 code units) versus Python3 string (string of Unicode codepoints) difference could cause issues.
I just realized we unintentionally fixed one instance of this in https://github.com/executablebooks/markdown-it-py/pull/70 :smile: The old entity data seemed to contain UTF-16 code units.
Originally posted by @hukkinj1 in https://github.com/executablebooks/markdown-it-py/issues/81#issuecomment-732506120
https://github.com/tsutsu3/uc.micro-py seems like a place where an error like this might have slipped in.