You can use Integer.parseInt
with a radix of 2 (binary) to convert the binary string to an integer:
int charCode = Integer.parseInt(info, 2);
Then if you want the corresponding character as a string:
String str = new Character((char)charCode).toString();
More Related Contents:
- What is the Java’s internal represention for String? Modified UTF-8? UTF-16?
- Unable to print russian characters
- Java Encode file to Base64 string To match with other encoded string
- How to get UTF-8 working in Java webapps?
- How to convert Strings to and from UTF8 byte arrays in Java
- Java properties UTF-8 encoding in Eclipse
- “unmappable character for encoding” warning in Java
- Java – Convert String to valid URI object
- “Unmappable character for encoding UTF-8” error
- Guessing the encoding of text represented as byte[] in Java
- IntelliJ IDEA incorrect encoding in console output
- File was loaded in the wrong encoding:’UTF-8′ in IntelliJ IDEA
- Java BufferedWriter object with utf-8
- Java 8 UTF-8 encoding issue (java bug?)
- How can I safely encode a string in Java to use as a filename?
- Check if a String is valid UTF-8 encoded in Java
- cyrillic in windows Console(java) System.out.println();
- How to replace � in a string
- HttpServletRequest UTF-8 Encoding [duplicate]
- Should source code be saved in UTF-8 format
- Why is Java BufferedReader() not reading Arabic and Chinese characters correctly?
- How to determine if a String contains invalid encoded characters
- Producing valid XML with Java and UTF-8 encoding
- Why does byteArray have a length of 22 instead of 20?
- Is there a way to instantiate a class by name in Java?
- Compare one String with multiple values in one expression
- Cleanest way to build an SQL string in Java
- Using PDFBox to write UTF-8 encoded strings to a PDF [duplicate]
- Java: How to split a string by a number of characters?
- Creating a UUID from a string with no dashes