I have database in iso-8859-2 format. But I need to create XML in utf-8. I almost don't know anything about asp.net so I need HELP! I have database in iso-8859-2, but I need to create xml file in utf-8. That means tha I must encode database before prinitng in UTF-8! Thanks In PHP goes like this:
db_connect();
mysql_query("SET NAMES 'UTF8'");
mysql_query("SET character_set_client='UTF8'");
This is my asp.net code for database connection
'CONNECTION TO DATABASE
dim dbconn,sql,dbcomm
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("../baze/test.mdb"))
dbconn.Open()
sql="SELECT * FROM nekretnine, tipovinekretnina WHERE nekretnine.idtipnekretnine = tipovinekretnina.idtipnekretnine ORDER BY nekretnine.idnekretnine"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
while dbread.Read()
Where and how do I now encode? Thanks