Is someone looking into the issue ?
Since I live in Sweden, I got tons of recordings containing umlauts, that can't be moved or croped, since the file can't be found by webif.
or can't it be solved for some reason ?
Answering my own question,
I solved it myself, by adding a new function in the script.js - file
(in /mnt/hd2/mod/var/mongoose/html/browse )
Code:
function replaceumlauts(string)
{
value = string;
value = value.replace(/\u00e5/g, '%E5');
value = value.replace(/\u00e4/g, '%E4');
value = value.replace(/\u00f6/g, '%F6');
value = value.replace(/\u00c5/g, '%C5');
value = value.replace(/\u00c4/g, '%C4');
value = value.replace(/\u00c6/g, '%C6');
return value;
}
Then in the var menuclick = function(action, el, pos) , I added
Code:
file = replaceumlauts( file );
right above the switch (action).
Now, the replace lines listed above only cover the Swedish characters å/ä/ö/Å/Ä/Ö, which are
matched, and replaced by '%xx'. If you have other characters, that requires converting, simply
replace mine, or add more.
The \u value chart can be found here:
http://www.javascripter.net/faq/accentedcharacters.htm
Then, you also have add the same funtion to (for instance) crop.js, there replace
(the 1st one is only for the progress meter to work properly)
$.get('progress.jim' + '?perc=' + perc + '&file=' + file,
with
$.get('progress.jim' + '?perc=' + perc + '&file=' + replaceumlauts( file ),
and
.load('execute.jim?file=' + $('#params').attr('file'),
with
.load('execute.jim?file=' + replaceumlauts( $('#params').attr('file') ),
-----
Finally, sorry for raping Javascript, I've never used it before, and I'm sure there's
a better way of adding the new function than putting it in every .js file (where
needed), but I simply don't know how
