Hello there,
I have just got my hands on D2009 and using it with one of our existing projects - it all compiles fine however I have just picked up DIRegEx to use some regex in the project.
However it's always giving warnings about String to RawByteString and vice versa. Eg
var
Response : string;
begin
Response := idHTTP.Get('http://www.somesite.com');
DIRegEx.SetSubjectStr(Response);
......
Now, the SetSubjectStr parameter is of RawByteString type, and the response from idHTTP.Get is just string. It seems strange that I would have either, do
DIRegEx.SetSubjectStr(utf8string(Response));
or
var
Response : Utf8String;
begin
Response := Utf8String(idHTTP.Get......);
What am I supposed to do here.