"Cannot assign special Unicode characters"

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
MSpagni
Expert Member
Posts: 642
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

"Cannot assign special Unicode characters"

Post by MSpagni »

While comparing a couple of PDF (without plugins) to see if they were identical I got the message: "Cannot assign special Unicode characters."
Clicking "ok" I finished having... nothing; empty panels.

Well, my idea was to make a BINARY comparison...
N.B. If I force a binary comparison then I get what I want, but I must force it

I think you can assume that if you get some odd Unicode codes then the file isn't (unicode) text but a binary one.
Am I wrong?
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: "Cannot assign special Unicode characters"

Post by psguru »

Could you send your files to us via email or post them here? This is a pretty unusual message, and it will require some investigation.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 642
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: "Cannot assign special Unicode characters"

Post by MSpagni »

You can find it here: http://puppylinux.org/main/Puppy430-tut ... nglish.pdf
Simply compare this file with a copy of itself.
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: "Cannot assign special Unicode characters"

Post by psguru »

Tried, could not reproduce the error. Could you post your options?
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 642
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: "Cannot assign special Unicode characters"

Post by MSpagni »

Sure. Here is it.
Attachments
Options.zip
(6.38 KiB) Downloaded 969 times
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: "Cannot assign special Unicode characters"

Post by psguru »

Thanks. Well, the difference is that I was using the PDF lug-in, and you were not.

s so happens that, in the auto-detect text/binary mode, your file is considered a valid Unicode file by a Windows API. It is then treated as text by EDP, and, due to its characters, you got the reported error. I suggest to set *.pdf files to be forced as binary under Options | Compare | Advanced. If you want to compare PDF files as texts, enable the plug-in.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 642
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: "Cannot assign special Unicode characters"

Post by MSpagni »

Obviously you missed
While comparing a couple of PDF (without plugins)
I suggest to set *.pdf files to be forced as binary under Options | Compare | Advanced. If you want to compare PDF files as texts, enable the plug-in.
Very good idea, thanks.
I think this could be a standard setting.
MSpagni
Expert Member
Posts: 642
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: "Cannot assign special Unicode characters"

Post by MSpagni »

Ehm... there is a problem.

I checked "Always treat these files as binary", then I wrote "*.pdf".
Of course "Automatically detect text/binary files" is still selected.
N.B. "Always treat these files as text" is unchecked.

I compare a couple of directories and, when I ask to compare a couple of files from the dir comparison pane, all my .c and .h files are compared as binary! (N.B. I only checked that kind of files. I don't know how it behaves with, e.g., .txt and others)

Did I something wrong?
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: "Cannot assign special Unicode characters"

Post by psguru »

It's a bug. The fix will appear in the next build of 5.5.
psguru
PrestoSoft
Post Reply