AIMP Forum

AIMP for Windows => Вопросы / Questions => Topic started by: EBBefar on August 05, 2022, 17:29:14

Title: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 05, 2022, 17:29:14
Hi all,

I'm having som difficulty in importing playlists to mobil app, when the tracks (or folder) contain the characters æ, ø and å.

The funny thing is that playlists made in the mobil app can have these letters without problem, they can be read in app and exported without problem, so the app can clearly read and write them.

Can someone tell me if it is possible in principle to import playlists with these letters? Or ideas for a workaround?

For context: I make the playlists in PC version, export them from there, and then import to mobile app.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: Artem on August 07, 2022, 10:21:47
What format of playlists that has an issue?
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 07, 2022, 19:03:44
Hi Artem

The format is .m3u8
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: Soolo on August 07, 2022, 19:59:55
Share this playlist
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 07, 2022, 20:27:51
Here you go

This is a playlist made in the PC version of AIMP. And like I said, the problem occurs when I import it to the mobil app (Android, if that matters.)

Probably not related, but I'll mention it anyway: Since windows and Android reads paths differently I made a small script to change all '\' to '/' as well as the changing the path itself so that it points to the location of my music on the phone.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: Soolo on August 07, 2022, 21:24:37
Share original playlist from AIMP for Windows
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 07, 2022, 21:46:34
Sure

I mean, they are pretty similar. The only difference is the path and \ or /.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: coldun on August 08, 2022, 09:37:08
Since windows and Android reads paths differently I made a small script to change all '\' to '/' as well as the changing the path itself so that it points to the location of my music on the phone.
Вот видимо этот скрипт и сломал кодировку файла с юникодной на не-юникодную.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: Artem on August 08, 2022, 09:39:15
Вот видимо этот скрипт и сломал кодировку файла с юникодной на не-юникодную.

Yes, you are right. This script break the encoding.
Anyway, it not necessary to change the "\" to "/" - mobile's aimp supports for windows-like paths.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 08, 2022, 10:50:24
Can you elaborate?

What does that mean exactly, and is there any way to avoid it?

Also, why does it only affect æ, ø and å?
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: Artem on August 08, 2022, 11:03:39
What does that mean exactly, and is there any way to avoid it?

Your script should not change the file encoding. M3U8 must be encoded using UTF8 without BOM.

Also, why does it only affect æ, ø and å?

Because these characters are valid for Windows 1250 ansi codepage only
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 08, 2022, 12:41:23
To be honest, I don't really understand any of that, it's a bit beyond my level.

Is there any workaround? I mean, how do other people transfer playlists form PC to mobile?
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: coldun on August 08, 2022, 13:05:29
Try to import this one:
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 08, 2022, 13:14:16
It seems to be working! How did you do it?

I do notice however, that .wma files do not work. But that may be unrelated.
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: coldun on August 08, 2022, 15:13:06
It seems to be working! How did you do it?
Any text editor - find & replace
Find:
Code: [Select]
..\..
Replace with:
Code: [Select]
\storage\7E6F-1BE6
(https://www.aimp.ru/forum/index.php?action=dlattach;topic=69195.0;attach=66513)
Title: Re: Regarding special characters: "æ, ø, å" in playlist
Post by: EBBefar on August 08, 2022, 15:26:01
Huh. I wonder what made my script fuck it up, because that's pretty much all it does.

Anyway, thanks to everyone for the help and clarification.