[fpc-devel] UTF8 RTL

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Nov 23 17:23:53 CET 2014

On Sun, 23 Nov 2014 16:31:10 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

> That seems wrong, since UTF-8 is not the default on Windows ?
> Let's try to understand first why do you insist on the "UTF-8" in the name ?
> Maybe "UTF-8 aware" is better, if you really want the UTF-8 in the name.

Maybe there is a misunderstanding. At least I can't follow you here.

I started the thread about ParamStr, which only supports the system
codepage. I would like to improve it so that it supports
DefaultSystemCodepage. Or at least add an Unicode version of
The reason I need this, is that when I set
DefaultSystemCodepage to CP_UTF8, most RTL functions work with UTF8 as
I also want to update the UTF-8 wiki pages. For example "If you use the
<insert name here> then ...". For this I need a short name.

Some people has called the RTL with UnicodeString the "Unicode RTL",
and the Ansistring RTL with system codepage "Ansi RTL".
I thought "UTF8 RTL" is analog, short and unambiguous.
Obviously I was wrong.

(And, yes, I know, that all three names "Unicode|Ansi|UTF8 RTL" are
not 100% correct from a technical point of view.)


More information about the fpc-devel mailing list