public class SafeEncode extends Object
Modifier and Type | Method and Description |
---|---|
static String |
safeEncode(String s)
Encodes the input string by translating special characters into escape
sequences.
|
public static String safeEncode(String s) throws UnsupportedEncodingException
s
- A UTF-8 string.UnsupportedEncodingException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.