Commit Graph

3 Commits

Author SHA1 Message Date
Moritz Bunkus
4eefc50110
JSON identification: replace invalid UTF-8 bytes with placeholder characters
nlohmann's JSON libraries in version 2.x used to strip bytes that
aren't valid UTF-8 from strings (e.g. service/station names in MPEG
transport streams) before outputting the JSON data structures. With
MKVToolNix v24 that bundled library was updated to v3 which now throws
an exception on such invalid data.

Therefore mkvmerge now takes care of replacing invalid bytes with
placeholder characters itself before passing the strings to nlohmann's
JSON library.

Fixes #2327.
2018-06-15 17:45:22 +02:00
Dominik 'Rathann' Mierzejewski
b4ca4862b4 make system utf8cpp check more robust
Check if utf8to32() and utf32to8() methods are available.
2015-04-02 23:05:01 +02:00
Dominik 'Rathann' Mierzejewski
fcd92036b4 build system: use system version of UTF8-CPP if present 2015-03-31 01:35:23 +02:00