Aliona Matveeva added the comment:
hi Karthikeyan Singaravelan!
I'm working with a russian database called 1C. it's pretty popular here in
Russia, and its 'twist' is that everything there (I mean code) is written in
Russian, i.e. cyrillic. So it's obvious and normal
New submission from Aliona Matveeva :
http.client trying to decode any header with 'latin-1', which fails when there
is any non-ascii symbols in it, for example, Cyrillic.
I propose to check if it's non-ascii and then decode it with 'utf-8', works
perfectly.
-