wangqr / Aegisub

Win64 nightly builds available at GHA artifact, also at following link:
https://ftp.wangqr.tk/aegisub/
Other
799 stars 49 forks source link

Hope to add UTF-16LE with BOM support #38

Closed Masaiki closed 4 years ago

Masaiki commented 4 years ago

Now it can decode UTF-8 and GBK text. but in windows system, UTF-16 is also used widely. Though changing encodings is easy, it is also hard for people who don't know about encodings. So would you please add support of Unicode with BOM

wangqr commented 4 years ago

Is there a sample file? Or are you aware any software that is creating / able to load UTF-16LE ass files?

Masaiki commented 4 years ago

sample file software that is able to load UTF-16LE ass files like xy-VSFilter or FontLoaderSub FontLoaderSub judge encoding following the order

  1. UTF-8, UTF-16 LE, UTF-16 BE with BOM,if BOM exists
  2. UTF-8 without BOM
  3. system encoding
  4. UTF-16 LE。
wangqr commented 4 years ago

Aegisub should be able to detect the encoding (with uchardet) and manually specify if that doesn't work (File -> Open Subtitles with Charset). Some how both are not working.

wangqr commented 4 years ago

This should be fixed in latest nightly build r9104.