如何通过统一code值美元的Web.Config C $ C字符。 [英] How to code characters in Web.Config by Unicode value

查看:138
本文介绍了如何通过统一code值美元的Web.Config C $ C字符。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.net,使用带的appSettings部分web.config文件;我想储存一些字符串变量。一个是包含不换行空格(UNI code十六进制值00A0)的字符串,另一个是一个空字符串。

In ASP.net, using a WEB.CONFIG file with an appSettings section; I am trying to store some string variables. One is a string containing a non breaking space (unicode hex value 00A0), and the other is an empty string.

我想这大概是#&安培; FFFF为UNI code,但无法找到任何这指导。此外,Web.config文件不喜欢一个空字符串。

I am thinking it is something like "#&FFFF" for unicode, but can't find any guidance on this. Also, the WEB.CONFIG file does not like an empty string.

我对这个解决方法,但是这将是伟大知道如何UNI code字符或空字符串存储在配置文件中。

I have a workaround for this, but it would be great to know how to store unicode characters or empty strings in the config file.

推荐答案

的Web.config是XML所以遵循的 XML标准

Web.config is XML so follow the XML standard

<添加键=测试VALUE =&放大器;#XA0; />

这篇关于如何通过统一code值美元的Web.Config C $ C字符。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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