Skip to content

Polish characters are garbled #7

@SimplexPL

Description

@SimplexPL

Hi,

I want to add chapters with Polish characters in it (żółćęśąźń). Unfortunately when I do it using mp3chaps it becomes garbled, probably some issues with proper character conversion.

I attached a txt file and mp3 file disguised as txt, as mp3 upload is not permitted but it is a tiny 10 seconds mp3 file that has less than 100kB.

I based my report on #6 because it was a very well formed bug report.

When Polish characters are added to the test.chapters.txt file (where test is the name of the mp3), and the mp3chaps -i test.mp3 is used, all Polish characters become garbled in the chapter text.

Steps to recreate

  • Create a valid mp3 file called test.mp3
  • Create a text file called test.chapters.txt
  • Insert the following line into the text file:
    • 00:00:00.000 żółćęśąźń
    • 00:00:09.000 zolcesazn
  • Run the following command:
    • mp3chaps -i test.mp3

Full output from result

λ mp3chaps -l test.mp3
Chapters:
żółćęśąźń
zolcesazn

Expected result

test.mp3 should have a two chapter markers called żółćęśąźń and zolcesazn, and running mp3chaps -l test.mp3 should show:

λ mp3chaps -l test.mp3
Chapters:
żółćęśąźń
zolcesazn

Machine details

  • Windows 10 (build number: 19041.450)
  • mp3chaps vLatest from pip3 (at time of reporting)
  • Python 3.8.5

test.chapters.txt
test.mp3.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions