Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDiff breaks unicode characters for emojis #59
Comments
|
Looks like the diffing doesn't consider whether a character is non-ASCII and breaks unicode emojis in pieces if they are different but occupy the same space. That would result in some unknown character � after all is said and done. Assuming it's conversion related. Looking into it out of curiosity. |
|
Looks like @yetanotherape has solved it for their PHP fork: The two current attempts at solving it in this repo have both had complications: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working message log in our app. We want to show diff of changes any user made on text posts. Those posts may include emoji characters but diff_match_patch replaces those characters with � character (but only if they changed in the text).
The behaviour can be reproduced here:
https://neil.fraser.name/software/diff_match_patch/demos/diff.html
Paste😉 and 😀 into textareas and compute the diff.
Why is this happening?