A Pen by Sohaib Mohammed on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Charset { | |
/** | |
* Convenience method that encodes a string into bytes in charset. | |
* <p> | |
* @param input string of Unicode characters | |
* @param charset name according to http://www.iana.org/assignments/character-sets/character-sets.xhtml | |
* @return binary characters in charset | |
*/ | |
public static Blob encode(final String input, final String charset) { |