title: Strange detail dataset memo-fields encoding in TClientDataSet
body: <p>Good day, all!</p>
  <p>I'm using a TClientDataSet, connected to master-detail dataset. At first, save data (for futher data exchange)</p>
  <p><em>cdsImpExp.SaveToFile(aFileName, dfXML);</em></p>
  <p>In obtained file memo-fields are written in internal encoding (what encoding, BTW?):
  T_PATIENTS_MEMO=&quot;!?@02:0 4;O MB&gt;9 &quot;  - for the master dataset</p>
  <p>T_OBSERVATION_MEMO=&quot;!?@02:0 4;O MB&gt;9 &quot; - for the detail dataset</p>
  <p>Now do</p>
  <p><em>cdsImpExp.LoadFromFile(aFileName);</em></p>
  <p>and try to process every field. I'm getting very strange behaviour for memo-fields content. At first I tried to read theese fields as:</p>
  <p><em>FieldValue := Field.AsString;</em></p>
  <p>In master dataset memo-field contains correct string in desired encoding (win-1251). In detail dataset memo-field contains the same char sequence as in input file (!?@02:0 4;O MB&gt;9). Ok. I try this:</p>
  <pre><code>  if Field.DataType = ftMemo then
    begin
      ms := TMemoryStream.Create;
      TMemoField(Field).SaveToStream(ms);
       ms.Position := 0;
       SetString(FieldValue, PChar(ms.Memory), ms.Size);
  </code></pre>
  <p>And FieldValue contains some like 'Справка㐠㬄伄 этой㼠䀄㸄' (some chars are right and some chars are in Japaneese encoding).</p>
  <p>What I do wrong? How can I read memo-field values from xml-file for the detail dataset?
  Thanks for your help.</p>
  <p>I have Delphi XE Update 1.</p>