Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with encoding and other charsets #140

Open
BennetLe opened this issue Mar 24, 2024 · 5 comments
Open

Problem with encoding and other charsets #140

BennetLe opened this issue Mar 24, 2024 · 5 comments

Comments

@BennetLe
Copy link

If I use pytaglib to add a new tag that contains for example an Ä, Ö or Ü it is not saved correct and looks like this:
grafik
If I read the tag again with pytaglib the output is correct but Window wont display it porpperly. If I use another program to add the tag I dont have the problem.

@supermihi
Copy link
Owner

Hi Bennet,
thanks for your report.

and looks like this:
which application is that screenshot from?

Window wont display it porpperly.
Same question, what is "Window" here?

@BennetLe
Copy link
Author

Sorry I ment to type Windows. The screenshot is from the default file explorer.

@JR3IS
Copy link

JR3IS commented Apr 7, 2024

I also ran into the same issue with special chars. I tried opening the tracks on MusicBrainz Picard and the names appeared written correctly in there. After adding a space in front of the name and saving it in Picard it fixed the issue of the names appearing mangled on the files.

@supermihi
Copy link
Owner

This could be caused by pytaglib using UTF-8 encoding for all tags, while other taggers / viewers might use different settings.
Which file type are you working with, is it MP3?

Could you try the following: save tags with picard, trying different text encodings (see here for how to set it). Can you reproduce the problem (and/or the correct behavior) with any of those?

Alternatively (or in addition), can you figure out the encoding and ID3 version of both the broken and correct files? I am not sure if the first is possible, but e.g. picard shows the ID3 version if you right-click a file and select "Info..".

You can also send me one of the files and I'll try to find the time to debug it myself.

@JR3IS
Copy link

JR3IS commented Apr 13, 2024

Thanks for the response.

The only file type where the problem happens is wav. I tried saving in Picard with all encoding types and both ID3 versions and couldn't reproduce the issue. It always comes out correct.

I'm using it here, for reference:
https://github.com/JR3IS/Batch-Audio-Tagger.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants