My Oracle Support Banner

How to store Cp1252 characters from XDK for Java and write them to a UNIX file. (Doc ID 259628.1)

Last updated on APRIL 29, 2020

Applies to:

Oracle XML SQL Utility (XSU) - Version 9.2 and later
JDBC - Version and later
Oracle Solaris on SPARC (64-bit)


 This article is intended to help in storing XML data correctly when using Java and the
XML SQL Utility (XSU) on a UNIX platform.

The data in question is from the Windows Cp1252 code set.
Specifically the RIGHT QUOTATION MARK.
An additional requirement is to be able to write this to a UNIX file system without the data being

Although this article deals with a specific character. The same concepts can be used to
correctly store data in the database via Java/JDBC and XSU.
These same concepts can be used to send output using streams that allow for use of encoding.


To view full details, 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 a vibrant support community of peers and Oracle experts.