when fetch content site http://dilbert.com, gives me invalid encoding: utf-8lias. no such encoding of course exists, cannot impact site tells me.
as result of this, play.api.libs.ws.response object throws unsupportedencodingexception:
[error] application - error: java.io.unsupportedencodingexception: utf-8lias
of course if encoding given site faulty, content in utf-8.
can somehow force scala ws response decode response utf-8 anyway?
not solution (hence not marking such), switched scalaj-http library instead, doesn't seem have issues reading http://dilbert.com.
https://github.com/scalaj/scalaj-http
i hope play's http library gets fixed, though.
Comments
Post a Comment