[MPlayer-users] Please improve subtitle encoding detection with enca

Lukas Vacek pheeror at gmail.com
Thu Jun 28 16:05:41 CEST 2007


IMHO just somethink like this "if enca_lang=='loc' {
enca_lang=setlocale(); }" can help some people.


On 6/27/07, Lukas Vacek <pheeror at gmail.com> wrote:
> Hi,
> could you improve subtitle encoding detecting a little?
>
> I think this way can work in the most cases:
> if lang: 'loc' is set for enca
>   1) get current locale (if it's en, try to detect in which country
> machine is - maybe timezone can help with this) run enca with lang set
> for current locale
>  2) if it fails, try to detect encoding like "i don't know lang, but i
> know it's windows encoding" (AFAIK enca currently can't do  this)
>  3) same as 2 to, for "iso", then for "mac"
>
> I tried to do it, but i have considered myself not low-level languages fan.
>
> thanks
>



More information about the MPlayer-users mailing list