<div dir="ltr"><div class="gmail_quote">On Wed, Jan 25, 2012 at 1:33 AM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, 25 Jan 2012 00:02:07 +0200<br>
Zaher Dirkey <<a href="mailto:parmaja@gmail.com">parmaja@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I created new project, then choose "File Settings -> Encoding -> UTF8 with<br>
> BOM -> Change file"<br>
><br>
> Added new listbox1 to the form, in source code (button ) i added some items<br>
> with my local language, this language in run time apear like "??????".<br>
><br>
> Is that a bug or i missed something?<br>
<br>
</div>When the compiler sees the UTF8-BOM it translates all strings<br>
to your system encoding, which is not UTF-8. The LCL expects UTF-8<br>
strings. Result: you see only garbage.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Mattias<br>
<br></font></span></blockquote><div> </div><div>How can i resolve this problem, because i share this unit with Delphi 2007, Delphi 2007 not understand UTF8 <b>without </b>BOM</div></div><div dir="ltr"><br>Thanks<br><br>Zaher Dirkey</div>
<br>
</div>