<p>I have xml where some of the element values are unicode characters. Is it possible to represent this in an ANSI encoding?</p>

<p>E.g.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;xml&gt;
&lt;value&gt;受&lt;/value&gt;
&lt;/xml&gt;
</code></pre>

<p>to</p>

<pre><code>&lt;?xml version="1.0" encoding="Windows-1252"?&gt;
&lt;xml&gt;
&lt;value&gt;&amp;#27544;&lt;/value&gt;
&lt;/xml&gt;
</code></pre>

<p>I deserialize the XML and then attempt to serialize it using XmlTextWriter specifying the Default encoding (Default is Windows-1252). All the unicode characters end up as question marks. I'm using VS 2008,  C# 3.5</p>

If I understand the question, then yes. You just need a
```
;
```
after the
```
27544
```
:
```
```
<?xml version="1.0" encoding="Windows-1252"?>
<xml>
<value>&#27544;</value>
</xml>
```
```
Or are you wondering how to generate this XML programmatically? If so, what language/environment are you working in?