store arabic in SQL database

前端 未结 9 572
栀梦
栀梦 2020-11-30 05:55

I tried to store Arabic string in SQL 2008 database but it converted to \" question mark \" why ? and what should I do ?

9条回答
  •  一向
    一向 (楼主)
    2020-11-30 06:04

    Iti is easy to store Arabic string in Oracle. Use this code:

    declare @P_CUSTOMER_NAME  nchar(50) 
    set @P_CUSTOMER_NAME2=N'أختبار'
    

    The above will save in Oracle just fine.

提交回复
热议问题