Replace ẞ in a string

0
Hi guys, I have a simple question, how do I replace ẞ with ss in a string?  Already tried these two solutions, but neither of them worked: replaceAll($InputString, '\ẞ', 'ss') replaceAll($InputString, 'ẞ', 'ss') Thanks in advance!
asked
3 answers
2

When I try your example in Mendix 8.9 it works.

I wonder if the issue is with character encoding. Are you sure the ẞ is encoded as UTF-8 in both the regular expression and input string?

answered
1

You can do it in Mendix. Look at the documentation here: https://docs.mendix.com/refguide/string-function-calls

There you see examples of the replaceAll or replaceFirst function calls.

Regards,

Ronald

[EDIT]

To quick answer. You already tried that with some special characters. This might be a bug because imho this should just work. You might want to file a bug report with a simpel test project.

answered
0

Already found the solution, I did it in Java using:
 

inputString.replaceAll("\u00df","ss");

Also, this doesn NOT work in Java because of a compilation errror:

inputString.replaceAll("ẞ","ss") 

 

answered