On 13/10/2011 04:55, Michael Schnell wrote:
On 10/13/2011 02:05 AM, Hans-Peter Diettrich wrote:
There is no "Raw" source ID.
The Delphi doc says "the RawByteString Type is type ANSIString($FFFF)".
So the RawByte encoding ID in fact is $FFFF (if FPC wants to be Delphi
compatible in that behalf ).
Maybe you can read
http://www.micro-isv.asia/2008/08/using-rawbytestring-effectively/ .
Specifically
"Then |ShowCodePage(A)| will display 1252, and |ShowCodePage(F)| will
display 65001. The StringCodePage function gets the code page
information stored in the string at runtime, not the declared code page,
which is 65535 for RawByteString. This means that StringCodePage is only
meaningful when calling it on a string variable that actually holds a
string. If it doesn’t hold a string, StringCodePage cannot retrieve the
code page, and it will always return the default code page."
Luiz
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel