My Oracle Support Banner

Forms12c: Unicode Characters Garbled when Insert/Update into NVARCHAR2 in NON-UNICODE Database. (Doc ID 2299003.1)

Last updated on MAY 03, 2023

Applies to:

Oracle Forms - Version 11.1.2.0.0 and later
Oracle Forms for OCI - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

Since 11.1.2.x, a new Forms datatype of NCHAR has been introduced. So Forms can handle NCHAR and NVARCHAR data.


Oracle Fusion Middleware Forms Services Deployment Guide 11g Release 2 (11.1.2) E24477-03
2.5 Support for Unicode Columns

However,  if your database character set is non-Unicode Forms tries to INSERT or UPDATE data into unicode columns in the database then those characters will be replaced by the '?' character.

For example, below situation

    - Database setting is below
      NLS_CHARACTERSET JA16SJIS
      NLS_NCHAR_CHARACTERSET AL16UTF16

   - Added NLS_LANG=Japanese_Japan.AL32UTF8 in default.env
      ※Detail is on Online Help(Forms Builder 12c - keyword: NCHAR )

   - Set NCHAR for Data Type

      

   - Implement below code for WHEN-BUTTON-PRESSED

       e.g.(In this case INS-1)


   

 

Result is working fine

    

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.