Re: [fpc-pascal] Status of UTF8

2013-09-29 Thread Michael Schnell
On 09/28/2013 02:51 PM, Jonas Maebe wrote: . You can read your data into a RawByteString and then call SetCodePage(rawbytestr,codepagenr,false) to set its code page to whatever the code page of the data in that string is (without attempting to convert the data, which is what the last "false" p

Re: [fpc-pascal] Status of UTF8

2013-09-28 Thread Andrew Brunner
On 09/28/2013 07:51 AM, Jonas Maebe wrote: You can read your data into a RawByteString and then call SetCodePage(rawbytestr,codepagenr,false) to set its code page to whatever the code page of the data in that string is (without attempting to convert the data, which is what the last "false" pa

Re: [fpc-pascal] Status of UTF8

2013-09-28 Thread Jonas Maebe
On 28 Sep 2013, at 14:38, Andrew Brunner wrote: > I did see that I can change the default code page, but that is not acceptable > where incoming MIME data is concerned. That global variable specifies the default code page for the plain ansistring type. It is not intended to be changed all the