how can i save utf-8 format characters to sql database/ Encode or Decode
C#
2
Posts
2
Posters
0
Views
1
Watching
-
dear programers in sqlservr database i made field type 'nvarchar' and 'ntext' does not work. how can i Encode and Decode the utf-8 characters so that i can easly save to database
sikandar
-
dear programers in sqlservr database i made field type 'nvarchar' and 'ntext' does not work. how can i Encode and Decode the utf-8 characters so that i can easly save to database
sikandar
Standard question #1: What do you mean by "not working"? If you have a text saved as UTF-8, you can load it with a StreamReader using the Encoding.UTF8 encoding. When you read a string from the stream it will be decoded to Uncode, that you can store in the database.
--- b { font-weight: normal; }