Accesso rapido:  

Forum: VirtualDJ Plugins

Topic: Sendcommand problem when using load "pathtomp3" with german umlauts

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

I have a problem when using the sendcommend with the load "pathtomp3" function in my plugin. If there is a german umlaut ä, ö, ü in the path of the mp3 file, the file is not loaded to the active deck. Without umlauts everything works fine.
I use SDK6.
 

Inviato Wed 25 May 11 @ 12:41 pm
djcelPRO InfinityModeratorMember since 2004
VirtualDJ works in UTF-8 so be sure to convert from UTF-16 (as I guess you used wchar_t as it's an unicode filename) to UTF-8

char strFilenameUTF8[1024];
int len = (int) lstrlen(filename) + 1;
WideCharToMultiByte( CP_UTF8, 0, filename, len, strFilenameUTF8, 1024, NULL, NULL);
 

Inviato Wed 25 May 11 @ 1:23 pm
Thank you for this hint.
 

Inviato Fri 27 May 11 @ 2:31 am
SBDJPRO Infinity Member since 2006
sweetsalt wrote :
I want to load a song to the playlist by passing a path as it works with the load function. Is there any way to do so? I tried the function playlist_add but with no success.
Is it possible to add this feature in a new version of VirtualDJ?


playlist_add acts on the currently selected browser item. There is presently no way to add a named file to a playlist within VirtualDJ - you would have to modify the M3U directly, then reload it in VDJ.
 

Inviato Fri 27 May 11 @ 5:46 am


(Vecchi argomenti e forum sono automaticamente chiusi)