Quick Sign In:  

Forum: VirtualDJ Plugins

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

This topic is old and might contain outdated or incorrect information.

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.
 

Posted 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);
 

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

Posted 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.
 

Posted Fri 27 May 11 @ 5:46 am


(Old topics and forums are automatically closed)