Re: [fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread Jonas Maebe
On 03 Dec 2012, at 20:01, ik wrote: > On Mon, Dec 3, 2012 at 7:31 PM, Jonas Maebe wrote: >> >> On 03 Dec 2012, at 18:12, ik wrote: >> >>> I made casting of UTF8String, WideString and UnicodeString to AnsiString: >>> https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 >>> >>> As

Re: [fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread ik
On Mon, Dec 3, 2012 at 7:31 PM, Jonas Maebe wrote: > > On 03 Dec 2012, at 18:12, ik wrote: > >> I made casting of UTF8String, WideString and UnicodeString to AnsiString: >> https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 >> >> As an example. >> >> My tests works. but are there t

Re: [fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread Jonas Maebe
On 03 Dec 2012, at 18:12, ik wrote: > I made casting of UTF8String, WideString and UnicodeString to AnsiString: > https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 > > As an example. > > My tests works. but are there things/contents that can break this > casting, or change the

[fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread ik
Hello, I made casting of UTF8String, WideString and UnicodeString to AnsiString: https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 As an example. My tests works. but are there things/contents that can break this casting, or change the content itself in some way ? Thanks, Ido __