<br><br><div class="gmail_quote">On 5 January 2013 13:39, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">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">
On Sat, 5 Jan 2013 13:06:42 +0000<br>
Frank Church <<a href="mailto:vfclists@gmail.com">vfclists@gmail.com</a>> wrote:<br>
<br>
>[...]<br>
<div class="im">> It is obvious that Unicode is not a simple topic and among FPC/Lazarus<br>
> developers/contributors,I suspect that few if any at all, have a detailed<br>
> grasp of how it all hangs together in the current state of implementation.<br>
> It brings to mind the parable of the 12 blind men and the elephant.<br>
<br>
</div>The FPC and Lazarus UTF details are not that difficult. The<br>
complexity comes from adding Delphi *, third party libraries and<br>
old FPC, Lazarus versions.<br>
<div class="im"><br>
<br>
> I think a diagram or graph of Unicode rules and their current state of<br>
> implementation in FPC/Lazarus would go a long way to helping both<br>
> developers and end users in this area. It is a topic which comes up<br>
> regularly and it doesn't show signs of ever going to be properly resolved.<br>
<br>
</div>For Lazarus:<br>
- works with fpc 2.6.x and 2.7.1<br>
- LCL and most code expect ansistrings to hold UTF-8.<br>
- pascal sources, lfm, po files are stored in UTF-8 without BOM.<br>
Special care has to be taken, when using widestrings/unicodestring.<br>
- there are UTF-8 functions and classes (most in package lazutils).<br>
- the IDE supports many encodings<br>
- all this is documented via wiki and fpdoc<br>
- no support for UTF-16 has been started<br>
<br>
<br>
>[...]<br>
<span class="HOEnZb"><font color="#888888"><br>
Mattias<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br>
</div></div></blockquote></div><br><br clear="all">Glad to hear this.<br><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a>