My Oracle Support Banner

JDBC/thin conversion of "\U3000" to ASCII 0x00 (null) with database with a US7ASCII character set (Doc ID 1360923.1)

Last updated on MARCH 11, 2019

Applies to:

JDBC - Version 11.2.0.2.0 and later
Information in this document applies to any platform.

Symptoms


JDBC/thin testcase application shows that a UNICODE CHARACTER "\U3000" is converted to 00 (null) when inserted in to a database with a US7ASCII character set.
On one hand it is expected since the JDBC driver is preventing non-ascii characters from being stored in the database, however storing a character of 00 (null) in character columns will cause problems with applications retrieving content as strings.

This issue does not occur with databases using other character sets, multi-byte charactersets.

This is only an issue with the thin driver. The OCI driver behaves as expected and inserts question mark (3F) which is the standard replacement character for ASCII.

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.