When I insert Hebrew words to the database, I get ????? marks after i click “show Table” in Server Explorer.
Is there a way to Encode the hebrew letters before they go in?
sqlCommand.Parameters.Add("@HebrewLettersEncoded", SqlDbType.VarChar, 50);
sqlCommand.Parameters["@HebrewLettersEncoded"].Value = HebrewLettersTextBox1Output.Text;
I am thinking that there should be some encoder that will encode – HebrewLettersTextBox1Output.Text
You’ll need to make sure the field you are trying to put the characters into is an NVarChar (not varchar). Then change the code above to….: