Page 1 of 1

Media Player does not plays the playlist items with accents

Posted: 2024-11-18, 18:34 UTC
by jarofromel
I have the playlist (m3u) with following items:

Code: Select all

Dribling.mp4
Stahovačka.mp4
Vzdušný dribling.mp4
Airdribling.mp4
When I open the playlist in the TC Media Player I get the error Cannot find file! (2x) and the Player shows and plays only the items without accents (diacritics), to be specific the first and last items play and the second and the third are excluded.

It happens on both devices I have:
  • TC for Android 3.50 on Moto G7 Power with Android 10
    TC for Android 3.60b4d on Samsung Galaxy Tab s6lite with Android 13 (One UI 5.1.1)

Re: Media Player does not plays the playlist items with accents

Posted: 2024-11-19, 10:39 UTC
by ghisler(Author)
It depends on the encoding of the file. If the file is encoded with UTF-8, you need to rename it to playlist.m3u8, or save it with a byte order mark at the start.

Re: Media Player does not plays the playlist items with accents

Posted: 2024-11-19, 13:52 UTC
by jarofromel
It works with other players on Android (VLC) and also on my desktop linux machine so I though there could be problem with the Media Player.
Never came through my mind the problem could be something else.
That's kind of deep tacit knowledge you have, man. Thanks a lot for the enlightement, I will rather check my playlists to get better cross-compatibility.

Re: Media Player does not plays the playlist items with accents

Posted: 2024-11-20, 08:07 UTC
by ghisler(Author)
So was the file really encoded with UTF-8 without byte order mark? Normally m3u files use the local language encoding, while m3u8 files use UTF-8.

Re: Media Player does not plays the playlist items with accents

Posted: 2024-11-22, 19:24 UTC
by jarofromel
Yes, the m3u file was UTF-8 without BOM.
Both solutions work - saving it with BOM or renaming to m3u8.

Re: Media Player does not plays the playlist items with accents

Posted: 2024-11-24, 07:10 UTC
by ghisler(Author)
Thanks for checking! The problem with auto-detecting UTF-8 is that some East Asian encodings can produce valid looking UTF-8 codes which are not actually UTF-8.