Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:40:15+00:00 2026-05-29T21:40:15+00:00

In a web application, I place two textboxes and button for inserting the data

  • 0

In a web application, I place two textboxes and button for inserting the data which is not English language. When I insert into SQL Server it is showing only “???????(1877?)” like this, but I taken the data type as nvarchar even though it is not coming in that language, is there any different way to insert and display the text which is not in English language.

    CREATE TABLE [dbo].[Multilingual](
[name] [nvarchar](50) NULL,
[address] [nvarchar](50) NULL
     ) ON [PRIMARY] 
    GO

    string sq = "insert into multilingual (name,address) values ('" + txtname.Text + "','" + txtadd.Text + "')";
    cmd = new SqlCommand(sq, con);
    cmd.CommandType = CommandType.Text;

    int i = cmd.ExecuteNonQuery();
    if (i == 1)
    {
        get();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:40:15+00:00Added an answer on May 29, 2026 at 9:40 pm

    The INSERT statement you are generating looks like

    insert into multilingual 
    (name,address) 
    values ('Foo','Bar')
    

    It would need to look like

    insert into multilingual 
    (name,address) 
    values (N'Foo',N'Bar') /*Notice the N prefix*/
    

    to avoid the string literals being treated as non Unicode with potential data loss. But do not do this.

    As well as the data loss issue your query is vulnerable to SQL injection and your web site will get hacked if exposed to the internet. You should use parameterised queries as discussed in the comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a doubt in my web application can i place two nework tags
My web application crashes almost once a week due to not enought memory error.
I am working on a web application which requires the user to login before
I have a working web application which already has a login and registration system.
I have two applications. In one application the web browser control shows a flash
We have an web application running under JBoss 5 which periodically launches a 'java'
I am evaluating some web application frameworks out there, and finally, two of the
Lets say; I am developing a Web Application which talks to a RESTful web
My web application generates pdf files and either e-mails or faxes them to our
My web application has a login page that submits authentication credentials via an AJAX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.