Re: [fpc-devel] Understanding literal strings

2007-12-14 Thread Florian Klaempfl
Florian Klaempfl schrieb: > The BOM/code page directive simply allows (and nothing else!) you to > create widestrings using simple string constants even if you want to use > chinese or whatever characters. Just tell the compiler what enconding to > use to convert the string constant to widestring.

Re: [fpc-devel] Understanding literal strings

2007-12-14 Thread Florian Klaempfl
Felipe Monteiro de Carvalho schrieb: > Hello, > > I am doing some tests and trying to find out what exactly happens with > string constants. Suppose this source code: > > var > AString: ansistring; > begin > AString := 'A acentuação é necessária no Português'; > end; > > The source is encode

[fpc-devel] Understanding literal strings

2007-12-14 Thread Felipe Monteiro de Carvalho
Hello, I am doing some tests and trying to find out what exactly happens with string constants. Suppose this source code: var AString: ansistring; begin AString := 'A acentuação é necessária no Português'; end; The source is encoded in utf-8, but the compiler isn't told about that in any way