用C#代码替换字符 [英] Character being replace in c# code

查看:125
本文介绍了用C#代码替换字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我现在已经使用C#在asp.net中建立了一个网站,问题是我的某些字符被代码中的不同字符替换了,这些字符在我在Visual Studio中打开代码但在打开.cs时不可见.文件在写字板中,我看到那些被替换的字符,谁能知道如何阻止其被替换??

字符不同,例如

Guys i have made a website in asp.net using c# now the problem is some of my characters are being replaced by different characters in code these character are not visible when i open the code in visual studio but when i open .cs file in wordpad i see those characters which are replaced can any one have any idea how to stop it being replaced??

Characters are different like

和其他许多字符..

推荐答案

这可能是因为您的写字板不支持或识别那些字符.您可以尝试以Unicode模式加载文件.另外,您可以尝试在记事本中打开它,看看那里是否也出了问题.
让我知道.
This is probably because your wordpad is not supporting or recognizing those characters. You can try to load the file in Unicode mode. Also, you can try opening it in Notepad and see if any thing is going wrong there too.
Let me know.


在本地,我的应用程序绝对可以正常工作,但是当我将应用程序上传到服务器上并且转到该特定页面时,需要一点时间才能让msge服务不可用它会丢弃连接池,任何人都可以想到dat wat是在bcz中发生的,当我在本地使用它时可以正常使用..
locally my application is absolutely working fine but when i upload the application on server and when i go to that particular page then it takes little bit time den just give msge service unavailable it drops the connection pool can any one have idea for dat wat is happenin bcz it is workin fine when i m using it locally..


这篇关于用C#代码替换字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆