# Kodi Community Forum

Full Version: function Handling illegal characters?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A question, does XBMC have a (skinner accessible) function to replace illegal characters when searching for a filepath? For Instance, i want to search for the folder which contains my AC/DC music files. My import/export utility and encoder uses a underscore to replace illegal characters when writing to a location... So instead of "\path\to\artists\folder\AC/DC" the exact folder is "\path\to\artists\folder\AC_DC"

is there some function i can pass the artists name to replace illegal characters?
something like

Code:
ReplaceIllegalCharacters("_")

or more specifically

Code:
ReplaceIllegalCharacter('/', '_')

that will return "AC_DC"?
XBMC does not, and will not support such skin hacks, because even with this change they still don't work in general.
(2012-10-02, 03:13)jmarshall Wrote: [ -> ]XBMC does not, and will not support such skin hacks, because even with this change they still don't work in general.

well would you object to a script that can provide skinners with tools like this?
Personally, yes, I would object to it. I wouldn't care whether skinners want to include it, however, as that isn't up to me.