wtekiela / opensub4j

Java library for communicating with opensubtitles.org XML-RPC API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subtitles encoding

LanShunoda opened this issue · comments

Is there any way to find out Subtitle encoding? When i get content from subtitle file it is encoded in UTF-8 by default. But some files are in other charsets, and they show incorect. I find that there is method getContent(String charsetName) . But i dont know charset of downloaded file to encode it correctly.
In response of search subtitles there is field sub encoding (https://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC#DownloadSubtitles).
I cant find in your library it implementation. And i dont know how to add it.

I found encoding

Fixed in: #5