adorris1 / geocoder-java

Automatically exported from code.google.com/p/geocoder-java
0 stars 0 forks source link

Version with plain URLConnection doen't respect response encoding. #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set java default encoding not UTF-8, i.e. file.encoding=Cp1251
2. Make request with language = "ru"

As result response fields are in invalid encoding.

What version of the product are you using? On what operating system?

version 0.9

Please provide any additional information below.

You can use java.net.URLConnection#getContentEncoding when creating 
InputStreamReader.

Original issue reported on code.google.com by sasla...@gmail.com on 6 Feb 2012 at 7:53

GoogleCodeExporter commented 8 years ago

Original comment by panchmp on 27 Feb 2012 at 8:45