<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-02-19 8:19 GMT-03:00 FreeMan <span dir="ltr"><<a href="mailto:freeman35@delphiturkiye.com" target="_blank">freeman35@delphiturkiye.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    
    showmessage(StrToHex('1234567890')); <br>
    results:<br>
    Compiler Options --> Other is empty<br>
    31323334353637383930<br>
    
    <br>
    Compiler Options --> Other "-FcUTF8"<br>
    
    <p style="margin:0px;text-indent:0px">31323334353637383930</p>
    
    <br>
    Compiler Options --> Other "-FcUTF8 , -dEnableUTF8"<br>
    
    <p style="margin:0px;text-indent:0px">31323334353637383930</p></div></blockquote><div><br></div><div>Thanks. This means problem is not in ParamStrUTF8(0);<br><br></div><div>I have two more tips to try to see where the problem is:<br><br></div><div>What is the type of wProgram?</div><div><br></div><div>Compile with the option -al (without debug info to get smaller files) and look to the generated asm file (has .s extension and lives the same dir the units are store)<br><br>look at the generated code for<br><br>wFileStr := TFileStream.Create(wProgram, fmOpenRead);<br> <br>and<br><br>wFileStr.Read(ar, 4);<br><br></div><div>BTW: the compiler are being recompiled with those options "-FcUTF8 , -dEnableUTF8" or only LCL?<br></div><div><br></div><div>Luiz<br></div><div><br><br></div></div></div></div>