Why Oracle displays ??? for special characters like åäö

拟墨画扇 提交于 2020-01-10 05:29:06

问题


Some time ago my PL/SQL stopped showing characters åäö.

I've tried reinstalling oracle_home_11g, PL/SQL cleaned the registry but the problem remains.

Anyone know why?


回答1:


Most probably it is due to the mismatch between the locale-specific NLS characterset and the database characterset. Or else, the NLS_LANG value is not correctly set in the OS environmental variable.

Have a look at Why are junk values/special characters/question marks displayed on my client?

  1. Your client charaterset doesn't match with database characterset.

You can compare between :

-- locale-specific characterset

select value
from   v$nls_parameters 
where  parameter = 'NLS_CHARACTERSET';


-- database characterset

select value
from   nls_database_parameters 
where  parameter = 'NLS_CHARACTERSET';

If you see a mismatch between the two, then set the locale-specific NLS characterset to that of database characterset.

  1. If the above charactersets match, then you need to set the NLS_LANG value in the OS environmental variable.

For Windows OS, the format is:

[NLS_LANGUAGE]_[NLS_TERRITORY].[NLS_CHARACTERSET]

Follow the instruction in the documentation regarding setting up the NLS_LANG : Setting the NLS_LANG Environment Variable for Oracle Databases



来源:https://stackoverflow.com/questions/25810768/why-oracle-displays-for-special-characters-like-%c3%a5%c3%a4%c3%b6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!