[BZ#725358] Comparing two files with different encoding shows no differences
Submitted by P Fudd
I've been debugging a restful interface bug, capturing network traffic with tcpflow, then comparing two requests. In Meld, they look identical (except for the content-length field is off-by-one), but one request generates the following error:
indexer_common.searcher.SearchRequestException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
It turns out that one file is encoded in utf-8, but the other is in latin-1. As the Content-Type: header I'm sending claims the request is utf-8, the server is right to throw an error.
Can meld be modified to either show the encoding at the bottom of the window for each file, possibly highlighting them in color if they're different, or otherwise call attention to this fact?
As a further cool enhancement, it would be nice to have a menu option for viewing the files in hex (possibly by filtering through 'xxd').
Note, I'm using 1.7.4 (the current version Ubuntu 12.04 ships with), so if this has been fixed in a later version, please be kind!
Thanks for a cool program!