Writing Buffer Data With DBMS_OUTPUT.PUT_LINE Results in an Upside Down Question Mark with Multibyte Data Stored in an NVARCHAR2 Column Type (Doc ID 1538753.1)

Last updated on MARCH 20, 2013

Applies to:

PL/SQL - Version 10.2.0.5 and later
Information in this document applies to any platform.

Symptoms

Writing buffer data With DBMS_OUTPUT.PUT_LINE results in an upside down question mark (¿) with multibyte data stored in an NVARCHAR2 column type and the database character set is non-unicode.

For Example:

NLS_CHARACTERSET WE8MSWIN1252
NLS_NCHAR_CHARACTERSET AL16UTF16

create table mymultitest (c1 nvarchar2(50));
insert into mymultitest values(unistr('\6211'));
commit;

 
Expected Output:

anonymous block completed
¿


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms