arabic characters in oracle database

送分小仙女□ 提交于 2019-12-02 05:50:02

问题


Dear all, I am trying to do the following.

I want to store Arabic characters in my database but the problem they are stored like that '??? ????'. I have tried with these function:

msg_txt:=convert(msg_txt, 'AR8MSWIN1256', 'AR8ISO8859P6');

but I got this error:

ORA-01858: a non-numeric character was found where a numeric was expected

any suggestion please?

thanks


回答1:


What is your database and national character set? If you're not sure

SELECT *
  FROM v$nls_parameter
 WHERE name LIKE '%CHARACTERSET'

What is the data type of the msg_txt variable? CHAR/ VARCHAR2? Or NCHAR/ NVARCHAR2?




回答2:


make sure the data type is nvarchar (unicode)



来源:https://stackoverflow.com/questions/4295866/arabic-characters-in-oracle-database

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