查看: 805|回复: 4
|
Visual Studio 2005 asp.net 网页显示中文问题
[复制链接]
|
|
在我local,我的Visual Studio 2005可以输入与储存简体(GB2312).网页显示也没问题。但一旦post上production testing server就出现乱码无法正常显示简体。请问是不是我那里出错呢? |
|
|
|
|
|
|
|
发表于 16-1-2007 11:00 PM
|
显示全部楼层
最好使用UTF-8... 不要用GB2312...
在header 里加入 <meta http-equiv="Content-Type" c />
然后用Notepad 开启该文件... 然后Save As... 然后Encoding设定成UTC-8
个人觉得Unicode比较方便... hehe... |
|
|
|
|
|
|
|
发表于 17-1-2007 12:56 AM
|
显示全部楼层
将你的中文字打在 back code (aspx.vb/aspx.cs) 就可 |
|
|
|
|
|
|
|
发表于 18-1-2007 09:38 AM
|
显示全部楼层
当你在 Visual Studio 做储存的时候, 应该用 Save As, 然后选择 encoding mode. |
|
|
|
|
|
|
|

楼主 |
发表于 18-1-2007 09:54 AM
|
显示全部楼层
问题在于live testing server.我的local PC是没有这个问题。我的问题已解决了。谢谢各位的回答。
The solution is set the gb3212 in the Web.confiq |
|
|
|
|
|
|
| |
本周最热论坛帖子
|