how to insert Arabic text to oracle database?

爷,独闯天下 提交于 2019-12-11 19:36:13

问题


I have html + php application connected to oracle database 11g. I am trying to insert Arabic characters via form, The issue it shows "????"

I surfed the internet to find a solution, and I did almost every trick but nothing works until now!! please I am disparate for help!

My environment:

  • Windows 7 home premium
  • html charset is set to utf8 ( I tried windows-1256, windows-1252 also did not work)
  • registry NLS_LANG is set to AMERICAN_AMERICA.AR8MSWIN1256
  • oracle 11g the table columns are set to NVARCHAR2
  • oracle character set is WE8MSWIN1252

Note: Arabic characters displays correctly when data is inserted via SQL DEVELOPER, knowing that SQL Developer encoding is set to windows-1256

Thanks

EDIT: I changed oracle character set to al32utf8, and still same issue!


回答1:


Try setting the database charset to UTF-8. This is the closest to the source so maybe it should be working then.



来源:https://stackoverflow.com/questions/21983220/how-to-insert-arabic-text-to-oracle-database

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