title: How did you get ASP.NET to output UTF-16 encoded text?
body: <p>How did you get ASP.NET to output UTF-16 encoded text?</p>
  
  <p>I serialize an object in .NET which by default is UTF-16 format. Now I want to send the string as an output response to an .ashx request.</p>
  
  <p>I get the error:
  Switch from current encoding to specified encoding not supported. Error processing resource</p>
  
  <p>How do I tell my website or page to use UTF-16 format.</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update:</strong> read both answers.</p>