Files
go-astisub/testdata/example-in-non-utf8.srt
Nick BrandtandGitHub 80e6dcf52c Enforce UTF-8 encoding for input bytes (#115)
* Detect UTF-8 for vtt/srt, error if encoded otherwise

* Switch to isValidUTF8Reader

* Remove isValidUTF8Reader function

* Enforce valid UTF8 on each SRT and WebVTT line

* Add benchmark tests for webvtt and srt

* Update benchmark test

* Add non-utf-8 tests and files

* Remove benchmarks
2024-10-08 15:52:55 +02:00

27 lines
734 B
Plaintext

1
00:01:39 --> 00:01:41,04
(deep rumbling)
2
00:02:04,08 --> 00:02:07,12 X1:40 X2:600 Y1:20 Y2:50
MAN:
How did we end up here?
3
00:02:12.16 --> 00:02:15.20
This place is horrible.
4
00:02:20.24 --> 00:02:22.28
Smells like balls.
5
00:02:28,32 --> 00:02:31,36
We don't belong
in this shithole.
6
00:02:31,40 --> 00:02:33,44
(computer playing
electronic melody)