Asp tutorial. net radcombobox control garbled Solution
There are two solutions:
1. Add in web. config
<Globalization fileencoding = "UTF-8" requestencoding = "UTF-8" responseencoding = "UTF-8" culture = "zh-cn"/>
2. decoder operations with garbled characters in the background code
Both of the above are not good solutions. The first one may cause problems on other pages. The second one is correct in the database tutorial, but what the user sees is still garbled, this seriously affects user experience. So where is the best solution?
Solution: add the <location> Configuration section to the web. config file to configure the encoding for a specific file or directory, as shown below:
<Location path = "here is the directory or file name">
<System. web>
<Globalization fileencoding = "UTF-8" requestencoding = "UTF-8" responseencoding = "UTF-8" culture = "zh-cn"/>
</System. web>
</Location>