Einzelnen Beitrag anzeigen

MarkusMaier

Registriert seit: 10. Apr 2007
Ort: Traunreut
6 Beiträge
 
#10

Re: How to Use Indy 10 idHTTP : IOHandler value is not valid

  Alt 23. Okt 2008, 13:11
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 ...
  Mit Zitat antworten Zitat