URLConnection does not get the charset

Viewed 17926

I'm using URL.openConnection() to download something from a server. The server says

Content-Type: text/plain; charset=utf-8

But connection.getContentEncoding() returns null. What up?

3 Answers
Related