Ana

Ana

  • NA
  • 1
  • 0

Represent Serbian Latin Chars in System.String

Aug 6 2010 4:16 AM
Hi
I've been Googling about this for some time, and couldn't find appropriate solution. Please help.
I am doing simple insert from windows form controls into MySql database.
This is my code:
*
  comRI_pruzene_usluge = new MySqlCommand();
            comRI_pruzene_usluge.Connection = baza;


            comRI_pruzene_usluge.CommandText = "insert into RI_pruzene_usluge (id_RI,rb_PU, opis_pruzene_usluge, korisnik)"
                                                + "values (@id_RI, @rb_PU, @opis_pruzene_usluge, @korisnik)";
            comRI_pruzene_usluge.Parameters.AddWithValue("@id_RI", id_RI);
            comRI_pruzene_usluge.Parameters.AddWithValue("@rb_PU", rb_PU);
            comRI_pruzene_usluge.Parameters.AddWithValue("@opis_pruzene_usluge", opis_pruzene_usluge);
            comRI_pruzene_usluge.Parameters.AddWithValue("@korisnik", korisnik);
*
Parameter values are taken from textbox.Text.
When I   input "Saša" into textbox it is inserted into database like "Sasa". Char 'š' is converted into 's'. When I do direct input manually into database cell "Saca" remains "Saša".
I tried to declare thread culture info property but problem resist.
Please, can someone solve this to me, it is urgent.

Thank you in advance.