You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable heuristic character set detection for SRT subtitles #2247
Using a local cheat, it appears as garbled code.
After transcoding the file stream to UTF-8, it can be displayed normally. Path.utf8(file)
When adding subtitles online, it appears as garbled text. new MediaItem.SubtitleConfiguration.Builder(Uri.parse(getUrl())).setLabel(getName()).setMimeType(getFormat()).setSelectionFlags(getFlag()).setLanguage(getLang()).build();
The provided file is an SRT file. I agree with #2167 (comment), this is a duplicate of google/ExoPlayer#3644. I will close that and use this to track it instead, to move it to this issue tracker.
changed the title [-]How to solve the problem of garbled text when loading online non-UTF-8 subtitles, such as GBK?[/-][+]Enable heuristic character set detection for SRT subtitles[/+]on Mar 19, 2025
The provided file is an SRT file. I agree with #2167 (comment), this is a duplicate of google/ExoPlayer#3644. I will close that and use this to track it instead, to move it to this issue tracker.
Activity
icbaker commentedon Mar 19, 2025
The provided file is an SRT file. I agree with #2167 (comment), this is a duplicate of google/ExoPlayer#3644. I will close that and use this to track it instead, to move it to this issue tracker.
[-]How to solve the problem of garbled text when loading online non-UTF-8 subtitles, such as GBK?[/-][+]Enable heuristic character set detection for SRT subtitles[/+]WoKee commentedon Aug 20, 2025
icbaker commentedon Aug 20, 2025
Plans have not changed since google/ExoPlayer#3644 (comment), in particular this sentence is still true:
Support custom charset detection for SubRip subtitles
Support custom charset detection for SubRip subtitles
icbaker commentedon Sep 28, 2026
This is fixed by 081a432