如何在app.config中使用双引号 [英] How to use double quotes in app.config

查看:326
本文介绍了如何在app.config中使用双引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在配置属性Property1中加上双引号

I need to put double quotes in configuration property Property1

 <Seection Name Propety1="" .../>


推荐答案

我相信在XML中编码引号的正确方法是通过& quot;

I believe the proper way to encode quotes in XML is via &quot;

查看此答案:
如何在XML的属性中转义双引号在T-SQL中是字符串吗?

对于要包含在数据中的其他特殊字符也是如此。本质上,您应该使用与HTML属性中相同的编码。

The same would go for any other 'special' characters you wish to include as data. Essentially, you should use the same encoding you would use in HTML attributes.

这篇关于如何在app.config中使用双引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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