Ver Mensaje Individual
  #2  
Antiguo 30-05-2017
Avatar de movorack
[movorack] movorack is offline
Miguel A. Valero
 
Registrado: feb 2007
Ubicación: Bogotá - Colombia
Posts: 1.346
Reputación: 20
movorack Va camino a la famamovorack Va camino a la fama
Al hacer debug, hice un ejercicio modificando el valor de "Len" por el tamaño del Stream obtenido.

Código Delphi [-]
/////////////////////////////////////////////////////////////////
//unit System.SysUtils

function TEncoding.GetString(const Bytes: TBytes; ByteIndex, ByteCount: Integer): string;
var
  Len: Integer;
begin
//Linea 31441
  Len := GetCharCount(Bytes, ByteIndex, ByteCount); //El resultado de Len es 0, lo modifiqué a 364510
  if (ByteCount > 0) and (Len = 0) then
    raise EEncodingError.CreateRes(@SNoMappingForUnicodeCharacter);
  SetLength(Result, Len);
  GetChars(@Bytes[ByteIndex], ByteCount, PChar(Result), Len);
end;

Al hacer esto funciona correctamente. Al parecer es el charset que acepta pero estos están establecidos como UTF-8, *;q=0.5 y el encoding en deflate, gzip, *;q=0

Sigo sin saber como solventar este error.
__________________
Buena caza y buen remar... http://mivaler.blogspot.com
Responder Con Cita