UTF-16 support?



Hi,

First and foremost, thanks for a great diff & merge tool!

My project involves XML files which need to be encoded in UTF-16 Little
Endian.  I cannot seem to view or diff UTF-16 files with Meld.

In the Encoding tab of the Preferences dialog I have this for the
codecs:

    utf8, iso8859, utf16, utf-16, utf16le, utf-16le

When I try to open a UTF-16LE file that's in SVN, Meld displays a yellow
error bar on top which reads, "Error fetching original comparison file".
I've confirmed UTF-8 files in the repo open fine--it's only an issue w/
UTF-16 files.

It behaves the same even for files which are marked for addition in the
repo but not yet added (so in this case, there's nothing to diff
against, but normally Meld will display the contents of the file
alongside a blank pane).

I've tried UTF-16 files that contain a BOM and files which do not; no
difference.

I notice that SVN sets the mime-type on these files as binary
(application/octet-stream).  If I manually change it to UTF-16LE
(text/plain;encoding=UTF-16LE), Meld displays a yellow error bar on top
which reads, "Could not read file" "test.xml appears to be a binary
file."--but it still doesn't display the contents of the file.

If I call meld and pass it 2 UTF-16 files on the file system (ie. not
trying to open a file from the SVN listing), I still get a yellow error
bar on top which reports "Could not read file" "test.xml appears to be a
binary file."

Is there something else I need to do?

Has anyone used Meld to diff UTF-16 files?

Best regards,
Nick




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]