Page 1 of 1

Character encoding for song titles in the Vlc playlist

Posted: 05 Nov 2011 13:10
by pdchris
Hello everybody,
is it possible to change the character encoding for the song titles appearing in the Vlc playlist?
I have some songs with names containing special (non-English) characters, which are turned into ??? when I add these songs to the playlist.
Despite extensive Google and Vlc Forum search I could not find a solution.
Many thanks in advance.

Re: Character encoding for song titles in the Vlc playlist

Posted: 07 Nov 2011 14:53
by Jean-Baptiste Kempf
mp3?

Re: Character encoding for song titles in the Vlc playlist

Posted: 09 Nov 2011 21:17
by pdchris
Yes, mp3 files, that is files with names of the form:
<containing english and special characters>.mp3

The operating system can show the correct file names, but as soon these songs are added to the vlc playlist, their names (under "Title", the column on the left) become illegible.
The URI is of course also illegible (04%20%CE%B9 etc)

Re: Character encoding for song titles in the Vlc playlist

Posted: 09 Nov 2011 21:51
by Rémi Denis-Courmont
I very strongly suspect your files contain incorrectly coded meta data. VLC prefers to use meta data in the file over the file name, as far as the title is concerned.

It's easy to test: rename the file to abc.mp3 and see if the title shows as 'abc' or still the same gibberish.

Re: Character encoding for song titles in the Vlc playlist

Posted: 09 Nov 2011 22:11
by pdchris
@ Rémi Denis-Courmont:
Thank you very much for your suggestion, your first assumption was correct:

1. Vlc does not use the filename, but the metadata. When I change the file name to abc, the Title in the vlc playlist remains illegible, but when I change the metadata title to abc, it is abc that appears.

2. However the problem remains similar: the OS (Windows Vista) can show the metadata correctly. The problem is not corrupt metadata, but Vlc that applies the wrong character encoding for them. Is it possible to define the character encoding of Vlc for the metadata?

Re: Character encoding for song titles in the Vlc playlist

Posted: 10 Nov 2011 08:11
by Rémi Denis-Courmont
No, the problem is your tool is not encoding metadata correctly, and so taglib cannot decode it right. This is a frequent problem with stupid Windows programmers who cannot read the ID3 specification.

Re: Character encoding for song titles in the Vlc playlist

Posted: 10 Nov 2011 21:31
by pdchris
OK, I understand that you are right, but there is no simple way for me to change the metadata of the many files I have.
Is there any way to help taglib decode the metadata correctly?
I should be possible, since Windows has no problem showing the correct data.
Thank you.

Re: Character encoding for song titles in the Vlc playlist

Posted: 11 Nov 2011 07:52
by Rémi Denis-Courmont
No. The only way is to fix the meta data. There must be tools for this, but I don't know anyone in particular.

Re: Character encoding for song titles in the Vlc playlist

Posted: 11 Nov 2011 11:11
by Lotesdelere
simple way for me to change the metadata of the many files I have.
On Windows Mp3tag can do this as you can create scripts for mass tagging.
For best compatibilty with any player and OS, make sure that "ID3v2.3 UTF-16" is selected in Tools -> Options -> Tags -> Mpeg

Re: Character encoding for song titles in the Vlc playlist

Posted: 12 Nov 2011 21:42
by pdchris
@ Lotesdelere:
Mp3tag read the original tags correctly and after pressing "save" (with the default options: ID3v2.3 UTF-16) it overwrote them in a way that now also the vlc player can decode them correctly. I do not know where the problem with the original tags and vlc lied, but now it is solved.
Thank you for your suggestion and thanks to everybody else who contributed to the solution.

Re: Character encoding for song titles in the Vlc playlist

Posted: 10 Aug 2012 09:28
by yummy90
Thumbs up for this post :D
Now my friends wouldn't ask me about the gibberish anymore

Re: Character encoding for song titles in the Vlc playlist

Posted: 10 Sep 2019 20:06
by ezrashapiro
Another thumbs up! Awesome program and it completely solved the problem. :D

Re: Character encoding for song titles in the Vlc playlist

Posted: 12 Sep 2019 06:09
by hwtan
Can this be the same problem as this one?

https://forum.videolan.org/viewtopic.php?f=14&t=150288