Media Player does not plays the playlist items with accents

Support for Android version of Total Commander

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jarofromel
Junior Member
Junior Member
Posts: 5
Joined: 2024-11-18, 12:53 UTC

Media Player does not plays the playlist items with accents

Post 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)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post 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.
Author of Total Commander
https://www.ghisler.com
jarofromel
Junior Member
Junior Member
Posts: 5
Joined: 2024-11-18, 12:53 UTC

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

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post 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.
Author of Total Commander
https://www.ghisler.com
jarofromel
Junior Member
Junior Member
Posts: 5
Joined: 2024-11-18, 12:53 UTC

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

Post by *jarofromel »

Yes, the m3u file was UTF-8 without BOM.
Both solutions work - saving it with BOM or renaming to m3u8.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply