Skip to Main Content

Database Software

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!

NLS setting to display Cyrillic alphabet

user13080027Mar 9 2013 — edited Mar 10 2013
NLSRTL 11.2.0.1.0 Production
Oracle Database 11g Enterprise Edition 11.2.0.1.0 64bit Production
PL/SQL 11.2.0.1.0 Production
TNS for Solaris: 11.2.0.1.0 Production
OS: Solaris 10 x86

The NLS settings for my database are:
SELECT * FROM nls_database_parameters;

1	NLS_LANGUAGE	AMERICAN
2	NLS_TERRITORY	AMERICA
3	NLS_CURRENCY	$
4	NLS_ISO_CURRENCY	AMERICA
5	NLS_NUMERIC_CHARACTERS	.,
6	NLS_CHARACTERSET	AL32UTF8
7	NLS_CALENDAR	GREGORIAN
8	NLS_DATE_FORMAT	DD-MON-RR
9	NLS_DATE_LANGUAGE	AMERICAN
10	NLS_SORT	BINARY
11	NLS_TIME_FORMAT	HH.MI.SSXFF AM
12	NLS_TIMESTAMP_FORMAT	DD-MON-RR HH.MI.SSXFF AM
13	NLS_TIME_TZ_FORMAT	HH.MI.SSXFF AM TZR
14	NLS_TIMESTAMP_TZ_FORMAT	DD-MON-RR HH.MI.SSXFF AM TZR
15	NLS_DUAL_CURRENCY	$
16	NLS_COMP	BINARY
17	NLS_LENGTH_SEMANTICS	BYTE
18	NLS_NCHAR_CONV_EXCP	FALSE
19	NLS_NCHAR_CHARACTERSET	AL16UTF16
20	NLS_RDBMS_VERSION	11.2.0.1.0
As you can see I set the value "AL32UTF8" for character set of the db in order to be able to store strings in different languages.

The problem is that when I insert data from SqlPlus in Cyrillic and then try to display it in a browser, I don't see it properly, although the web-page is set to encoding UTF-8.

If I insert the data from a web-page form to the table in the db and then display it, I see it properly, as obviously I provided data encoded in UTF-8 and again displayed in UTF-8.

However if I try to query this data from SqlPlus or PL/SQL Developer (the UTF-8 encoded data which I previously inserted from a web-page form) I see something like:
Регистрационна форма ...

Please, can you help to figure out where is the problem? Why is the encoding messed up when I query UTF-8 encoded data in Cyrillic from the database?

It is pretty much the same with any non-English alphabet. For example, if I insert "Ver­füg­ung er­mög­lichen" in the database will be written: "VerВ­fГјgВ­ung erВ­mГ¶gВ­lichen"

What is misconfigured?
Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2013
Added on Mar 9 2013
3 comments
4,437 views