convertUTFWhitespace
String sutil.convertUTFWhitespace (String input ) (enterprise edition only)
Description
Replaces the UTF variants on whitespace with a regular space character.
Return Values
Returns the converted string.
Change Log
Version |
Description |
6.0.55a |
Available in all editions. |
Examples
Tidying a string from a site that has non-uniform ways of returning strings.
// useful when tidying a string
String cleanedInput = sutil.convertUTFWhitespace(input);
cleanedInput = cleanedInput.replaceAll("\\s{2,}", " ").trim();