<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Andrea<br>
    <br>
    <div class="moz-cite-prefix">On 10/04/2015 05:14 PM, aperi2007
      wrote:<br>
    </div>
    <blockquote cite="mid:5611423C.6060007@gmail.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      I know that if the text pasted is a true UTF8 all go perhaps
      better.<br>
      But when the user fill it using a copy/and/paste from a word
      document,<br>
      it is not using an UTF8 but instead a CP1252 in local language
      (italian, francais, english, or deutch language, every one with
      its own  particular languages characters).<br>
      For us they are these:<br>
      òàùìè<br>
      but also the word microsoft: when the user copy/paste from it a
      text with inside a ' char, it became another char <br>
    </blockquote>
    I think the clipboard should already take care of charset
    conversion?<br>
    If it does not, that should probably be fixed instead.<br>
    <br>
    <blockquote cite="mid:5611423C.6060007@gmail.com" type="cite">An XML
      could be an utf-8 response, but however it cannot have any of the
      expecially characters of XML.<br>
      <br>
      I guess for example to chars <, > , & <br>
    </blockquote>
    <blockquote cite="mid:5611423C.6060007@gmail.com" type="cite"> So if
      the user copy/paste a text like:<br>
      <br>
      ...The dataset is filtered using the rule [VAR] < 10.000.000<br>
    </blockquote>
    <br>
    They should be escaped / substituted.<br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents">http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents</a><br>
    If they are not, please file a bug.<br>
    <br>
    <blockquote cite="mid:5611423C.6060007@gmail.com" type="cite"> </blockquote>
    <blockquote cite="mid:5611423C.6060007@gmail.com" type="cite"> <br>
      The char "<" if go to fail the response xml.<br>
      <br>
      The better for xml client solution is to put the restricted char
      inside a CDATA section or escaping them.<br>
      , of-course we could ask to the user to fill the abstract setting
      every restricted char inside a CDATA section, but actually QGIS
      say nothing for it , so the user don't know is it is pasting a
      text with some restricted char.<br>
      <br>
      Hope to better explain the question.<br>
    </blockquote>
    <br>
    If there is a problem which you are experiencing it should be taken
    care of.<br>
    I am just not sure if the solution of trimming it all to 7-bit ascii
    is the preferred one. IMO other fixes should be explored before
    using this sledgehammer approach.<br>
    <br>
    Disclaimer:<br>
    I am not involved in the server development, so other people may
    know better what's required.<br>
    <br>
    Matthias<br>
    <br>
  </body>
</html>