title: How to get rid of "'', hexadecimal value 0x11, is an invalid character. Line 1" in XML error, when binary chracters are put in XML?
body: <p>I am getting XML parsing errors when some one puts a binary character '' in a text field.
  Is there any way to just encode this data in XML and decode it back when it is used by someone.</p>
  
  <p>My Webs service is written using PHP</p>
  
  <p>Should i use utf8_encode/decode methods in PHP?</p>
  
  <p>I tried bin2hex (to encode) and then hexdec (to decode) but it is not working for all the characters for example, character set from other languages.</p>