Add a fallback encoding conversion for diff content.
Review Request #3528 — Created Nov. 17, 2012 and submitted — Latest diff uploaded
Add a fallback encoding conversion for diff content. When trying to convert the resulting diff content to unicode, we first try straight utf-8, and then try any encodings which were configured on the repository. This change adds one additional step, where we try to interpret the file as utf-8 but replace any unknown characters with U+FFFD.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
reviewboard/diffviewer/diffutils.py |
---|