[MPlayer-dev-eng] utf-16 encoded subtitle files

compn tempn at twmi.rr.com
Sun Jul 12 13:32:46 CEST 2009


On Sat, 11 Jul 2009 19:59:51 +0100, Magnus Leuthner wrote:
>+    // check or unsupported utf-16 encoding and inform the user
>+    if( j == 1 &&
>+        (line[0]) == (char)0xFF && (line[1]) == (char)0xFE ||
>+        (line[0]) == (char)0xFE && (line[1]) == (char)0xFF
>+    ) {
>+        mp_msg(MSGT_SUBREADER,MSGL_ERR,"SUB: File seems to be UTF-16 encoded. This encoding is not supported.\n");
>+        return SUB_INVALID;

it might be worth it to try to continue anyways, in the event of a false
positive? adding a simple command line that will convert the file for
them too?

also this error message could go in help/help_mp-en.h
so it can be translated.

-compn



More information about the MPlayer-dev-eng mailing list