I’m having a very simple code crashing in juce functions :
String test = String("Test").replaceCharacters("à", "a");
will crash at juce_CharPointer_UTF8.h line 170
The same without the accent String test = String("Test").replaceCharacters("a", "b");
will work.
Question is, what is the best practice then to convert all accents and special chars into [a-zA-Z0-9_] range (converting all the special chars with ‘_’ and all convertible accent with their normal letter correspondance).
For your second question, in URL there is a static method to urlEncode, called addEscapeChars(), that uses the ugly web-standardised encodings.
Would be nice to have a human readable version too, that replaces ä => ae etc. but that list will probably become very long, considering all possible languages…
Maybe that exists, but I remember we had this topic similar lately with no conclusive answer