convertUTFWhitespace
	String sutil.convertUTFWhitespace (String input ) (enterprise edition only)
Description
Replaces the UTF variants on whitespace with a regular space character.
Parameters
- input The input string.
 
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();
String cleanedInput = sutil.convertUTFWhitespace(input);
cleanedInput = cleanedInput.replaceAll("\\s{2,}", " ").trim();
      samt on 02/26/2016 at 12:48 pm
  
    
          
      
- Printer-friendly version
 - Login or register to post comments
 
