store arabic in SQL database

前端 未结 9 589
栀梦
栀梦 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条回答
  •  旧时难觅i
    2020-11-30 06:14

    Try using this:
    the column Data type is nvarchar()

    INSERT INTO CompanyMaster values(N'" + txtCompNameAR.Text + "',N'" + txtCompAddressAR.Text + "','" + txtPh.Text + "')
    

提交回复
热议问题