APlayer icon indicating copy to clipboard operation
APlayer copied to clipboard

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

Open jquanC opened this issue 3 years ago • 6 comments

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

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

  • The steps to reproduce.
  • A minimal demo of the problem via https://jsfiddle.net or http://codepen.io/pen if possible.
  • Which versions of APlayer, and which browser / OS are affected by this issue?

jquanC avatar Dec 13 '21 11:12 jquanC

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

Quandong-Zhang avatar Apr 12 '22 02:04 Quandong-Zhang

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: @.***>

jquanC avatar Apr 12 '22 03:04 jquanC

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.

jack10082009 avatar Oct 20 '22 13:10 jack10082009

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: @.***>

jquanC avatar Oct 20 '22 13:10 jquanC

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.

jack10082009 avatar Oct 20 '22 14:10 jack10082009

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: @.***>

jquanC avatar Oct 20 '22 14:10 jquanC