diff options
Diffstat (limited to 'mpvcore/charset_conv.h')
-rw-r--r-- | mpvcore/charset_conv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/charset_conv.h b/mpvcore/charset_conv.h index ad10f010a0..171793ffab 100644 --- a/mpvcore/charset_conv.h +++ b/mpvcore/charset_conv.h @@ -7,10 +7,11 @@ enum { MP_ICONV_VERBOSE = 1, // print errors instead of failing silently MP_ICONV_ALLOW_CUTOFF = 2, // allow partial input data + MP_STRICT_UTF8 = 4, // don't fall back to UTF-8-BROKEN when guessing }; bool mp_charset_requires_guess(const char *user_cp); -const char *mp_charset_guess(bstr buf, const char *user_cp); +const char *mp_charset_guess(bstr buf, const char *user_cp, int flags); bstr mp_charset_guess_and_conv_to_utf8(bstr buf, const char *user_cp, int flags); bstr mp_iconv_to_utf8(bstr buf, const char *cp, int flags); |