title: XML Parsing Error: not well-formed
body: <p>I am creating a sitemap XML from my database it's about videos sitemap. In XML, I am fetching the video title as <code>title</code> and description as <code>description</code>, but there are some titles and descriptions written in Thai, Portuguese, German, and other languages. While generating the XML through PHP I am facing a problem that says: </p>
  
  <blockquote>
    <p>"XML Parsing Error: not well-formed". </p>
  </blockquote>
  
  <p>Generation of the XML stops after encountering this error.</p>
  
  <pre><code>XML Parsing Error: not well-formed
  Location: http://localhost/mydesk/sitemap.php
  Line Number 24489, Column 69:
  </code></pre>
  
  <p>I observed it contained invalid characters like listed below, and I have replaced all types of these characters, but I realized there are other characters being used in other languages.</p>
  
  <blockquote>
    <p>Ð ž ´ Ø ¸ à ½ Ð ‰ ˆ Ù ° § ¼ ¡ ‹ ± … Â ³ è ¾ Ñ € ¦ ƒ Ñ ‡ ª Ñ Ï ¿ ¬ µ š † Ð ½ ¹ Œ ² Ð ¼ Î ¶ € Ð µ ] : å &lt; * © > % â © # " ' ä æ ï ã Š ç › Š º Ž ¥ œ • ¤ ç ã ® ˜ ¢ ¨ ¯ £</p>
  </blockquote>
  
  <p>Is there any way to handle this issue that supports all languages?</p>