title: Postgres xmlelement encoding
body: <p>My postgres database in UTF-8 and client in UTF-8 too.<br>
  When i try to:</p>
  
  <pre><code>select xmlelement(name pampam, xmlattributes('русский' as "top"));
  </code></pre>
  
  <p>I get back: </p>
  
  <pre><code>&lt;pampam top="&amp;#x440;&amp;#x443;&amp;#x441;&amp;#x441;&amp;#x43A;&amp;#x438;&amp;#x439;"/&gt;`  
  </code></pre>
  
  <p>But i want get back attribute as is( i.e. in Russian UTF-8), not as <code>&amp;#x440</code>....<br>
  How i can do this?</p>
  
  <hr>
  
  <p>This is not solve problem, I use xmleliment to construct xml from data get back by queries.
  And i can't find another way to do this...</p>