Package net.dv8tion.jda.internal.utils
Class EncodingUtil
java.lang.Object
net.dv8tion.jda.internal.utils.EncodingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeCodepoint
(String codepoint) static String
encodeCodepoints
(String unicode) static String
encodeCodepointsUTF8
(String input) static String
encodeReaction
(String unicode) Encodes a unicode correctly based on being in codepoint notation or not.static String
encodeUTF8
(String chars)
-
Constructor Details
-
EncodingUtil
public EncodingUtil()
-
-
Method Details
-
encodeUTF8
-
encodeCodepointsUTF8
-
decodeCodepoint
-
encodeCodepoints
-
encodeReaction
Encodes a unicode correctly based on being in codepoint notation or not.- Parameters:
unicode
- Provided unicode in the form of\​uXXXX
orU+XXXX
- Returns:
- Never-null String containing the encoded unicode
-