Hi happy hackers,
I was tinkering with some character-based behavior (tangential to Reas' 10print "challenge" post) and I noticed that the Processing console does not correctly print Unicode characters. For me, at least (OS X 10.7, Processing 2.0b6).
For example, consider:
- print("☠"); // that is a skull utf character literal, right in the code
- print("\2620"); // utf escape code for skull
Neither of these work as intended, resulting in ? on the console.
I have verified that I can indeed print unicode characters, both as literals, and as escape sequences, to a console with my version of the JRE. For example:
- import java.io.*;
- public class Main {
- public static void main(String[] args) {
- System.out.println("☠"); // this prints the skull.
- System.out.println("\2620"); // this does not.
- String unicodeMessage = "\2620";
- PrintStream out = null;
- try {
- out = new PrintStream(System.out, true, "UTF-8");
- out.println(unicodeMessage); // this prints the skull.
- } catch (Exception e) {
- System.out.println("Fucked, mate! ");
- }
- }
- }
I've searched the forum, interWeb and the issue list about this. It seems issue
749 is related, but was merged into
226, and basically lost.
As a budding contributor I'd like to perhaps bite into the feature "Processing can print unicode characters out of the box via print/println" but I want to inquire first to make sure that A) I'm not crazy and B) others have experienced this issue.
Thanks for your insight. (Yes, in the meantime, I'll read the source.)
1