PL/SQL arabic displayed as?

假如想象 提交于 2019-12-25 07:43:08

问题


When I query for data that have arabic text in PL/SQL Developer, It is showed as question marks (????).

I am sure the data is correctly stored in DB because it shows on website properly, also on the server.

So I think it is a problem related to my PL/SQL Developer (v8.0.4.1514).

  • Is there any way to change how PL/SQL Developer shows/encodes arabic text?

  • How to check in what format/encoding the arabic text is stored?

My question might be missing some details, So Just ask me and also keep in mind that I am very beginner in PL/SQL and in SQL.

Thank you.


回答1:


can you SET NLS_LANGUAGE to Arabic by ALTER SESSION SET NLS_LANGUAGE = 'ARABIC'

it could be the solution, if not can you provide more information about O/S and it's version, ... etc




回答2:


I found a solution (which might also work with other languages that shows as '????')

I changed the NLS_LANG in registry to AMERICAN_AMERICA.AL32UTF8

(I found 3 NLS_LANG's in registry, check with each one or just change them all like I did.)

then restarted PL/SQL developer, test a query and arabic text is showing normally.

Thank you all.




回答3:


in registery find NLS_LANG and change its value from AMERICAN_AMERICA.WE8MSWIN1252 to AMERICAN_AMERICA.UTF8 it works fine for me for persian characters.



来源:https://stackoverflow.com/questions/13430366/pl-sql-arabic-displayed-as

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