GithubHelp home page GithubHelp logo

Wrong File Encoding with Chinese about espera HOT 8 OPEN

liikGit avatar liikGit commented on September 3, 2024
Wrong File Encoding with Chinese

from espera.

Comments (8)

torinkwok avatar torinkwok commented on September 3, 2024

中文乱码在国外的播放器上确实是很常见的。

from espera.

flagbug avatar flagbug commented on September 3, 2024

Hm, not easy for me to solve, since I have nothing in Chinese.

Could you explain the "scrambled" part a bit more? Maybe post a screenshot here?

from espera.

torinkwok avatar torinkwok commented on September 3, 2024

@flagbug He means "Garbled", like this:
issue-screenshot

Maybe caused by the incompatibility between Unicode and other character set (for example, GBK).

from espera.

flagbug avatar flagbug commented on September 3, 2024

Huh, interesting, I'll see if I can fix this, thanks!

from espera.

liikGit avatar liikGit commented on September 3, 2024

@flagbug as TongG's post, that is what I want to say
@tongG 非常感谢!

from espera.

torinkwok avatar torinkwok commented on September 3, 2024

You are welcome!

from espera.

torinkwok avatar torinkwok commented on September 3, 2024

@liikGit

关于中文乱码的问题我找到了一个很好的解决办法。

引起乱码的原因是因为中文歌曲的元数据一般都是使用GBK编码,而国外的音乐播放器一般不支持GBK的解码,所以会出现乱码。

解决这个问题的根本方法,要么是让播放器支持GBK编码的解析,要么就是将歌曲的元信息的编码改为UTF-8编码。我的这个方法就是从改变歌曲的UTF-8编码入手:

  • 首先需要一个MP3文件的元信息编辑器,你可以在这里下载需要用到的元信息编辑器:MP3Tag(后面的截图使用的都是它)。
  • 打开Espera,这时你可以看到,很多中文歌曲的歌曲名,专辑名等元信息都是处于乱码状态:

(这是一个陈奕迅的歌曲列表)
garbled

  • 打开MP3Tag:
    open-mp3tag
  • 添加你想要转换元信息的歌曲所在目录:

add-directory1

add-directory2

  • 注意,此时这些MP3文件的元信息还是GBK编码,这时可以全选这些歌曲,点击工具栏中的Save按钮对所有元信息进行重新保存(不用对其元信息做任何更改),MP3Tag会自动将所有元信息就地重新以Unicode编码进行保存

resave

偶尔可能会蹦出一个警告对话框Cannot be opened for writing,不用理它,点即可
alert

  • 这时就可以回到Espera => Settings => My Music,然后点击UPDATE NOW按钮重新加载音乐库:

UPDATE-library

  • 大功告成,你可以在列表中看到,所有的元信息都已经转换为Espera可以理解的Unicode字符编码,乱码问题已经解决:

(你可以和之前乱码的截图对比一下)
 everything-is-ok

另外当元信息被成功转码为Unicode编码后,不仅仅是在Windows上,再OS X和Linux上也不会再乱码了:
on-mac

from espera.

liikGit avatar liikGit commented on September 3, 2024

@tongG 谢谢,这是一个方便的工具,现在Espera显示正常了!
@flagbug I found taglib-sharp's function File.Create(fileAbstraction) return the wrong coding tag attributes. I am not sure it's the resaon why Espera display scrambled.

from espera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.