Variable with Chinese characters

  • Thread starter Eins via DotNetMonster.com
  • Start date
E

Eins via DotNetMonster.com

Dear all;

I have the following code:

Dim Remark
Remark = Request.Form("Remark")


sql = "INSERT INTO TblTestTable " _
& "(Comment) " _
& "VALUES (N'" & Remark & "')"
dbconn.open()
dbcomm=New OleDbCommand(sql,dbconn)
dbcomm.ExecuteNonQuery()
dbconn.Close()

txtDisplay.text = "The remark posted: " & Remark


When I write into my database with N'" & Remark & "' the Chinese
characters are stored into my database correctly.
However, when I try to display what I have in my variable (Remark), all I get
is ???

How can I solve this?

Please help.

Thank you.

PS:
I am doing my coding with VB ASP.net.
My database is MS SQL 2000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top