You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nothing too major ig, but at least on windows 10 non ascii characters seem to break when this module is trying to print them, the diff calculation seems to work fine, but when you ask the function to print the string back, non ascii characters break, eg:
>>> print(diff('Mögen','Mägen',as_patch=True))
@@ -1,5 +1,5 @@
M
-%C3%B6
+%C3%A4
gen
The text was updated successfully, but these errors were encountered:
I'm not actively maintaining the project but I'll leave the issue open in case anyone can find the problem (although I'm not sure this is a bug, it may be a limitation of how Python on Windows stores Unicode).
I think this may be the intended behavior of the underlying diff_match_patch library, and it may be based on existing conventions for patch files in the Linux world.
Nothing too major ig, but at least on windows 10 non ascii characters seem to break when this module is trying to print them, the diff calculation seems to work fine, but when you ask the function to print the string back, non ascii characters break, eg:
The text was updated successfully, but these errors were encountered: