Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Wrap ASCII conversion error for ASCII >127

user3292382Jun 16 2021 — edited Jun 16 2021

Hello,
we have recently updated to Oracle 12.2.0.1.0 and are using the WRAP utility that came with Oracle 10g. (Edit: we just tried with the WRAP utility version 12, the results are the same.)
We noticed that, after a package has been wrapped, certain characters explicited in a string are not converted correctly. In particular, characters of the extended part in the ASCII table (>127).
Here is a very simple example:
------------------------
create or replace package TEST is
function test_ascii return varchar;
end TEST;
/
create or replace package body TEST is
function test_ascii return varchar is
begin
return('¦'); -- this is ASCII 166
end;
end TEST;
/
--------------------------
If you copy&paste the above code into the PL/SQL program, and do a "select TEST.test_ascii from dual", it works: you'll see a ¦ character.
But if you WRAP that text, load the .plb generated file... when you do a "select TEST.test_ascii from dual", you'll see another thing. It seems like a codepage conversion error, or something.
Is there any workaround?
Thank you.

This post has been answered by User_H3J7U on Jun 16 2021
Jump to Answer
Comments
Post Details
Added on Jun 16 2021
5 comments
481 views