Print Thread
Problem with some characters when comparing source to DB
#60390 08/07/19 06:32 AM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
Marco,

I have a package body source, that has non-standard literal character in it (ASCII function returns 50072). The body compiles without any problems and when I check the compiled source, this character is still there.
There is a problem however, when I try to compare my local source to current database source, because in both Editor.pcf and Database.pcf files that character is transformed to 'O' (ASCII = 79).
Needless to say, that may lead to some problems when for example someone wants to make local source up to date by copying the whole DB source from the comparision tool, which exactly happened in my case.

Best Regards.
Scovron.

P.S. I can't put the problematic character in the post, because PHP Forum Software doesn't cooperate with it, so run "SELECT CHR(50072) FROM dual;" to see, what I mean smile

Last edited by Scovron; 08/07/19 06:56 AM.
Re: Problem with some characters when comparing source to DB
Scovron #60391 08/07/19 06:36 AM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
I'm sorry, but seems like PHP Forum Software has some problem with the special character, that the post was about, because the post ends in that place although in preview it looks fine.
I'll edit the original post in a moment.

Last edited by Scovron; 08/07/19 06:38 AM.
Re: Problem with some characters when comparing source to DB
Scovron #60393 08/07/19 08:48 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
Can you let me know how exactly you compare the sources? Do you use the "Compare Database Objects" tool, or do you use the right-click compare function?


Marco Kalter
Allround Automations
Re: Problem with some characters when comparing source to DB
Marco Kalter #60394 08/07/19 10:16 AM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
Right click -> Compare to -> Current database source...

Re: Problem with some characters when comparing source to DB
Scovron #60396 08/08/19 08:36 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
The 3rd party difference viewer that we use does unfortunately not support Unicode. This has been enhanced for the upcoming 14.0 release, which has a built-in difference viewer with full Unicode support.

The only alternative in PL/SQL Developer 13.0 and earlier is to configure an external difference viewer that supports Unicode (Configure > Preferences > Tools / Differences).


Marco Kalter
Allround Automations
Re: Problem with some characters when comparing source to DB
Marco Kalter #60397 08/08/19 10:57 AM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
Marco,

Seems like the problem doesn't lie in difference viewer (I'm using WinMerge by the way), because Editor.pcf and Database.pcf files are generated with that character already translated. I've check them in a hex editor to be 100% sure.

Re: Problem with some characters when comparing source to DB
Scovron #60400 08/09/19 08:58 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
Can you send the source file to support@allroundautomations.com?


Marco Kalter
Allround Automations
Re: Problem with some characters when comparing source to DB
Marco Kalter #60403 08/09/19 01:41 PM
Joined: Jun 2009
Posts: 14
Warsaw, Poland
S
Scovron Offline OP
Member
OP Offline
Member
S
Joined: Jun 2009
Posts: 14
Warsaw, Poland
Email with example source code containing problematic character has been sent.

Re: Problem with some characters when comparing source to DB
Scovron #60404 08/10/19 09:55 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
Thanks. I see that this is a UTF8 encoded file. Can you also send a screenshot of how the compare function fails? Furthermore, can you go to Help > Support Info and send me the text from the "Info" tab page?


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.043s Queries: 14 (0.014s) Memory: 2.5330 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-27 17:58:59 UTC
Valid HTML 5 and Valid CSS