Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

Legend

Jan 21, 2017, 07:21 AM Last Edit: Jan 21, 2017, 07:22 AM by Legend
The IDE itself utilizes unicode, but it doesn't output in the console part of it.  
System.out.println( "漢");
Would work fine, but it would output a "?"
Did the ? look like this REMOVED or � ? (I have no idea what that will look like to you) In my experience the problem is that the font doesn't support that character.

Yeah, unicode encoding.
In java, you have to do it like \u6F22, but it wasn't working through the text file.  
But there's an easy way to just cast it into a character.  (char)6F22
Except I had to change to decimal, because the integer parser worked only for decimal.  
Clever solution. ;D  I was doing some testing a long while back and came up with such a convoluted mess to get the job done. I'd be embarrassed having to show my code to others.


EDT: had to remove the first symbol. It confused the forum and erased the rest of my post.