pinterf / AviSynthPlus

AviSynth with improvements
http://avs-plus.net
208 stars 24 forks source link

encoding for Subtitle. UTF8 / Windows-1251 is not OK for AVS+. What encoding shoud we use? #47

Open belonesox opened 4 years ago

belonesox commented 4 years ago

Old AVS have encoding cp1251 for Subtitle.

I tried cp1251 and UTF8 encoding for AVS++, but still have nonsense like that.

изображение

What encoding shoud we use?

pinterf commented 4 years ago

How do you use SubTitle when using utf8?

belonesox commented 4 years ago

Hmm... Demo AVS file attached.

demo-utf8-subtitle.zip

pinterf commented 4 years ago

File is UTF8 w/o BOM. That's all right. But you missed utf8=true. I feel the pain, we have a couple of accented characters as well, that's why I put utf8 support in SubTitle, though normally ANSI works but sometimes you have to mix the character sets. http://avisynth.nl/index.php/Subtitle (There is no other real utf8 support in Avisynth, aside from utf8 path and file name support in source and import filters)

belonesox commented 4 years ago

Sorry, I missed new parameter for Subtitle. The bug can be closed.

BTW, if any way to make AVS+ portable (setting environment variables, «PATH» — OK, for ffmpeg/VD/MPV process — OK, make global registry hardcoding — not OK)?