Page 1 of 1
"Cannot assign special Unicode characters"
Posted: Mon Jul 04, 2011 11:36 pm
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?
Re: "Cannot assign special Unicode characters"
Posted: Tue Jul 05, 2011 6:27 am
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.
Re: "Cannot assign special Unicode characters"
Posted: Tue Jul 05, 2011 10:56 pm
by MSpagni
You can find it here:
http://puppylinux.org/main/Puppy430-tut ... nglish.pdf
Simply compare this file with a copy of itself.
Re: "Cannot assign special Unicode characters"
Posted: Wed Jul 06, 2011 6:22 am
by psguru
Tried, could not reproduce the error. Could you post your options?
Re: "Cannot assign special Unicode characters"
Posted: Wed Jul 06, 2011 10:40 pm
by MSpagni
Sure. Here is it.
Re: "Cannot assign special Unicode characters"
Posted: Thu Jul 07, 2011 2:44 pm
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.
Re: "Cannot assign special Unicode characters"
Posted: Thu Jul 07, 2011 10:36 pm
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.
Re: "Cannot assign special Unicode characters"
Posted: Fri Jul 08, 2011 12:26 am
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?
Re: "Cannot assign special Unicode characters"
Posted: Sat Jul 09, 2011 10:20 am
by psguru
It's a bug. The fix will appear in the next build of 5.5.