Note that there are some explanatory texts on larger screens.

plurals
  1. POmaking a base64 decoded text visible without changing "windows language for non unicode program settings" "
    primarykey
    data
    text
    <p>I encoded a text in a TMemo using base64 encoding tools ( like Indy tools ) but after decoding the result text, I just get some " ? " characters instead of the correct text . the original text is in persian language .</p> <p>THE QUESTION IS :</p> <p>I can see the decoded text if I set the windows"language for non unicode programs " on persian language . but I wanna make the decoded text visible without changing the " windows non unicode ... " . </p> <p>Its about two weeks Im stuck on this ! I tried "UTF8ToWideString" , "UTF8ToUTF16","UTF8ToUnicodeString","UTF8ToString","UTF8Decode" and "UTF8EncodeToShortString" but non of them worked.</p> <p>Encoding > </p> <pre><code> var input,output:TstringStream; begin input:=nil; output:=nil; input:=TstringStream.Create; output:=TstringStream.Create; memo1.Lines.SaveToStream(input); input.Position:=0; encoder.Encode(input,output); output.Position:=0; memo2.Clear; memo2.Lines.LoadFromStream(output); input.Free; output.Free end; </code></pre> <p>Decoding >></p> <pre><code>var input,output:TStringStream; begin memo3.Clear; input:=nil; output:=nil; input:=TStringStream.Create(); output:=TStringStream.Create(); memo2.Lines.SaveToStream(input); input.Position:=0; decoder.DecodeBegin(output); decoder.Decode(input); decoder.DecodeEnd; output.Position:=0 ; memo3.Lines.Add(output.DataString); end; </code></pre> <p>I also tried delphi internal encoding tools . as following </p> <pre><code>// encoding &gt; memo2.Lines.Add(EncodeString(memo1.Lines.Text)) // decoding&gt; memo3.lines.add(DecodeString(memo2.Lines.Text)) ; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload