I don't know if you have this problem when you write the ASP.NET program, you have a text box in your page, and you need to extract the input content in the text box and perform the database operation (such as adding the input content. To the database),
If the input is in English, there is no problem, but when the input content is Chinese, an error that cannot be submitted, or can be submitted, but the content in the submit to the database has become garbled.
At this time, you can check if the setting of the web.config file is incorrect. In general, there should be a problem with the format settings for the input and output, or there is no settings at all, so it is only recognized by the default. The Chinese is ignored (this is my own guess, anyway, the problem is -____-). The solution is to join the format limit in
XML Version = "1.0" encoding = "UTF-8"?>
There is also a situation here. If you use the code to do with DW, change the first line of coding or delete it, because DW will make some things, although sometimes it is very Convenient, but sometimes it will add.
Also, if you don't set a web.comfig file, you will have this problem.
This problem is actually I have met recently. I thought it was an error in the beginning. Later, I found out in English ... The final problem is still in the classic forum. This is Thank you MMKK, Chnama and Tzboy. Discussion on this problem original post