DIYgod / APlayer

:lollipop: Wow, such a beautiful HTML5 music player
http://aplayer.js.org
MIT License
7.32k stars 1.03k forks source link

请问‘lrc’歌词文件中的中文乱码问题解决了吗?Has the problem of garbled Chinese characters displayed in the ‘lrc’ lyrics file been resolved? #726

Open jquanC opened 2 years ago

jquanC commented 2 years ago

中文用户请注意:请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。

If you want to report a bug, please provide the following information:

Quandong-Zhang commented 2 years ago

用utf-8编码,别用gbk就行

jquanC commented 2 years ago

Thanks! I will make it.

 

------------------ 原始邮件 ------------------ 发件人: "DIYgod/APlayer" @.>; 发送时间: 2022年4月12日(星期二) 中午11:00 @.>; @.**@.>; 主题: Re: [DIYgod/APlayer] 请问‘lrc’歌词文件中的中文乱码问题解决了吗?Has the problem of garbled Chinese characters displayed in the ‘lrc’ lyrics file been resolved? (Issue #726)

用utf-8编码,别用gbk就行

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jack10082009 commented 2 years ago

In fact, you can use GBK encoding, but HTML pages are now declared as utf-8 encoding. If it is declared as GBK, it does work. But,the UTF-8 is recommended.

jquanC commented 2 years ago

Thanks for the reply~  I actually don't remember the details of using this plugin, although I use it on my blog and it's still online.But I remember  utf8 supports Chinese encoding. The cause of this problem may be some codec inconsistencies. ------------------ 原始邮件 ------------------ 发件人: "DIYgod/APlayer" @.>; 发送时间: 2022年10月20日(星期四) 晚上9:43 @.>; @.**@.>; 主题: Re: [DIYgod/APlayer] 请问‘lrc’歌词文件中的中文乱码问题解决了吗?Has the problem of garbled Chinese characters displayed in the ‘lrc’ lyrics file been resolved? (Issue #726)

In fact, you can use GBK encoding, but HTML pages are now declared as utf-8 encoding. If it is declared as GBK, it does work. But,the UTF-8 is recommended.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jack10082009 commented 2 years ago

Of course. utf-8 supports almost all characters, including Chinese characters of course. However, due to the different encoding mechanism, some GBK-encoded content is recognized as "undisplayable characters". If saved incorrectly, the famous "锟斤拷" will also appear.

jquanC commented 2 years ago

You are right, and next time i will notice this issue. Actually i almost forget this issue although i have made serveral modifications of my blog...but thanks for your reply again!

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月20日(星期四) 晚上10:04 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [DIYgod/APlayer] 请问‘lrc’歌词文件中的中文乱码问题解决了吗?Has the problem of garbled Chinese characters displayed in the ‘lrc’ lyrics file been resolved? (Issue #726)

Of course. utf-8 supports almost all characters, including Chinese characters of course. However, due to the different encoding mechanism, some GBK-encoded content is recognized as "undisplayable characters". If saved incorrectly, the famous "锟斤拷" will also appear.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>