Zitat von
DeddyH:
Maybe defining all char-/stringtypes as
ANSI charset could help.
It does not: Internetreadfile returns
unicode data. This is the reason why this error occurs in D2009 and did not occur before anyway ... I tried this and got invalid text data ...
The following changes:
dwNumber := sizeof(databuffer) - sizeof(char);
...
dwLastItem := dwread div SizeOf(char);
databuffer[dwLastItem]:=#0;
...
do not help either as they lead to invalid data, too ...