summaryrefslogtreecommitdiffstats
path: root/DOCS/man/en/encode.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-15 21:42:17 +0200
committerwm4 <wm4@nowhere>2013-08-15 23:40:03 +0200
commitfe3c44511234e00f67f9fccef281efb95c326576 (patch)
tree085d61668e9f63fcb3d3c5b15cbef16b8878620e /DOCS/man/en/encode.rst
parent00f735d5cba22713ba9a377876b7cfd333c0b2b9 (diff)
downloadmpv-fe3c44511234e00f67f9fccef281efb95c326576.tar.bz2
mpv-fe3c44511234e00f67f9fccef281efb95c326576.tar.xz
sub: allow specifying a fallback codepage if input is not UTF-8
Normally, --subcp always forces conversion. This really always forces conversion, even if the UTF-8 check on the input succeeds. Extend the --subcp to allow codepages as fallback if UTF-8 doesn't work. So, for example --subcp=utf8:cp1250 will use UTF-8 if the input looks like UTF-8, and will fall back to use cp1250 if the UTF-8 check fails. I think this should actually be the default, but on the other hand, this changes the semantics of the option, and a user would actually expect --subcp to force conversion, rather than silently using UTF-8 if that happens to work.
Diffstat (limited to 'DOCS/man/en/encode.rst')
0 files changed, 0 insertions, 0 deletions