=-求助-= asp.net我怎样才能把中文转换成unicode, 我需要user input chinese to a Textbox, 然后把这个Textbox.Text 转换成unicode ,然后存到database, 怎样做啊?
actually, i dont know why you need to do so, but
you can set this in your web.config file
<globalization requestEncoding="utf-8" responseEncoding="utf-8" /> (or you can set decode/encode for that specific page).
this will convert all into utf characters.
to store this in the database, i suggest you use nvarchar instead of varchar data type.
hope this is help for you!
<globalization requestEncoding="utf-8" responseEncoding="utf-8" /> (or you can set decode/encode for that specific page).
this will convert all into utf characters.
to store this in the database, i suggest you use nvarchar instead of varchar data type.
hope this is help for you!