[fpc-devel] utf8 in 2.6.0

Martin Schreiber mse00000 at gmail.com
Tue Jan 1 16:54:21 CET 2013


On Tuesday 01 January 2013 16:44:28 Jonas Maebe wrote:
> On 01 Jan 2013, at 16:31, Martin Schreiber wrote:
> > On Tuesday 01 January 2013 15:24:05 Jonas Maebe wrote:
> >> Without a {$codepage xxx} directive, string constants containing
> >> characters
> >>
> >>> #127 remain exactly as they appear in the source code.
> >>
> >> With a {$codepage xxx} directive, string constants containing characters
> >> > #127 are converted into unicodestrings during the parsing (according
> >> to the specified code page), and converted back into ansistrings (using
> >> the "ansi" code page of that particular program run) at run time if they
> >> are assigned to ansistring/shortstrings or passed to routines expecting
> >> such parameters.
> >>
> >> Note that the above is for 2.6.x (as the subject mentions).
> >
> > How does it work in trunk?
>
> The strings are stored as ansistrings with the appropriate code page.
>
So 
"
UnicodeStringVariable:= 'abcdäüö';
"
always will call a conversion function?

Martin



More information about the fpc-devel mailing list