Arabic Text from SQL SERVER converting to Question Marks in Front end in ASP.NET MVC Application RRS feed

  • Question

  • User1888235789 posted

    I have Arabic text in my Sql Server. When I run the application I am getting Question marks in the front end (ASP.NET MVC APP).

    I have another database with tha Arabic content. When I switch to that database it is displaying properly.

    Is it the database setting somewhere I need to set?


    Thursday, November 24, 2016 1:52 AM

All replies

  • User364663285 posted

    Are you able to select Arabic character like

    select N'Arabic_col
    from tab1

    from the DATABASE in problem?

    Thursday, November 24, 2016 6:53 AM
  • User-1716253493 posted

    Are you sure you can see arabic text in the database?

    Ensure the column type is nvarchar.

    AFAIK, some character become question mark if you convert nvarchar to varchar or store the characters in varchar datatype.

    Thursday, November 24, 2016 7:25 AM