something strange PlayListSave method

Started by Terry, March 23, 2021, 12:32:33 PM

Previous topic - Next topic

Terry

Hello,

I use the sample program "Playlists.exe" to save the playlist.
If I add songs from local user music or document sub folder which folder name contains Chinese characters, the file name in the playlist is only in 8.3 format.
But any other folders except the local user folder are normal
Please see the result below.

-- m3u playlist file
C:\Users\yen\Music\西洋\01-NOR~1.MP3
C:\Users\yen\DOCUME~1\西洋\01-NOR~1.MP3
C:\Users\yen\Music\sample\01 - Norah Jones - Chasing Pirates.mp3    <-- It is normal
D:\Temp\西洋\01 - Norah Jones - Chasing Pirates.mp3          <-- It is normal
D:\Temp\01 - Norah Jones - Chasing Pirates.mp3       <-- It is normal


Terry

Administrator

Hello,

the code for saving playlists file is quite old and was developed at the beginning of this century when Unicode was still not well supported so, by default, pathnames are converted in 8.3 format: quite strange that in some case there are still Unicode characters saved, it could in some way depend upon the main language of the Windows systems.

Kind Regards

Severino Delaurenti
MultiMedia Soft