# Java Unicode Chars

**URL:** https://discourse.processing.org/t/java-unicode-chars/34284
**Category:** Coding Questions
**Created:** [December 25, 2021, 10:17am UTC](https://discourse.processing.org/t/java-unicode-chars/34284 "2021-12-25T10:17:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 26, 2021, 4:34pm UTC](https://discourse.processing.org/t/java-unicode-chars/34284/4 "2021-12-26T16:34:42Z")

</div>

It’s showing katakana 🏯 characters for me here: 🤔

```auto
/** 
 * Unicode Katakana Test (v1.0.1)
 * GoToLoop (2021/Dec/26)
 *
 * https://Discourse.Processing.org/t/java-unicode-chars/34284/4
 *
 * http://Studio.ProcessingTogether.com/sp/pad/export/ro.9hlrt8LyDd9uA
 */

static final int FONT_SIZE = 22, CHARS = 30;
static final int START = 0x30A0, RANGE = 96;

static final String FONT_JAVA = "Serif";

void setup() {
  size(700, 150);
  noLoop();
  fill(#FFFF00);

  textAlign(CENTER, CENTER);
  textFont(createFont(FONT_JAVA, FONT_SIZE, true));
}

void draw() {
  String txt = "";
  for (int i = 0; i++ < CHARS; txt += (char) (START + (int) random(RANGE)));
  println(txt);

  background(#400000);
  text(txt, width >> 1, height >> 1);
}

void mousePressed() {
  redraw();
}

void keyPressed() {
  redraw();
}

```

P.S.: Console log depends if the PDE’s selected font can display that UNICODE range though. 😬

---

_[View the full topic](https://discourse.processing.org/t/java-unicode-chars/34284)._
