Revision 5391
org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/main/java/org/gvsig/vcsgis/lib/repository/remoteclient/requests/AbstractRequestClient.java | ||
---|---|---|
30 | 30 |
import java.io.PipedInputStream; |
31 | 31 |
import java.io.PipedOutputStream; |
32 | 32 |
import java.net.URL; |
33 |
import java.nio.charset.StandardCharsets; |
|
33 | 34 |
import org.apache.commons.io.IOUtils; |
34 | 35 |
import org.apache.commons.lang3.StringUtils; |
35 | 36 |
import org.apache.commons.lang3.mutable.MutableObject; |
... | ... | |
211 | 212 |
public int consumeResponse(final InputStream responseContents ) throws IOException, InterruptedException { |
212 | 213 |
|
213 | 214 |
LOGGER.debug("===: ["+this.getRequestName()+"] consumeResponse 1"); |
214 |
BufferedReader responseReader = new BufferedReader(new InputStreamReader(responseContents),4096); |
|
215 |
BufferedReader responseReader = new BufferedReader(new InputStreamReader(responseContents,StandardCharsets.UTF_8),4096);
|
|
215 | 216 |
responseReader.mark(1024); |
216 | 217 |
String line = responseReader.readLine(); |
217 | 218 |
if( StringUtils.containsIgnoreCase(line, "<html>") ) { |
Also available in: Unified diff