Error: "Cannot export file using given character encoding"

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
abasil96
Posts: 1
Joined: Wed Jul 24, 2024 8:29 am

Error: "Cannot export file using given character encoding"

Post by abasil96 » Wed Jul 24, 2024 8:40 am

When performing a merge, I recently started getting this error when I try to save the result file in the DiffMerge GUI:
Cannot export file using given character encoding. Unknown encoding (-1)
This prevents me from completing a merge in ClearCase. The source files being merged are UTF-8 encoded as far as I can tell via Notepad++.
Merges used to work fine for years, and now they suddenly don't.
The workaround involves a rather painful process. It would be nice to know what's causing this problem.

Some useful version info
OS: Win 10 Pro 22H2, build 19045.4651
DiffMerge: 4.2.0 (697:52f98c4fcb) [x64] stable

Tonya
Posts: 906
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Error: "Cannot export file using given character encoding"

Post by Tonya » Mon Jul 29, 2024 7:48 am

Hello,

We have a few questions:

1) The problem appears to be file specific? Or does the issue happen for all files? If it's file specific, does the issue happen for all files of that same type?

2) You said the problem recently occurred, what changed?

3) What steps do you take to resolve the problem?

Thanks,

Tonya

Post Reply