# Serious issue with TextEditor: TextEditor and non-roman characters

**URL:** <https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445>\
**Category:** General JUCE discussion\
**Created:** [August 27, 2020, 12:52pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445 "2020-08-27T12:52:28Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 27, 2020, 12:52pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/1 "2020-08-27T12:52:28Z")

</div>

Are there any plans to make this work?

Even the JUCE demo doesn’t support japanese text entry.

Open the properties editor demo app on the Mac for example, and paste わたし into it. You get garbage.

![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/7/7c22a5a78d9700aa48f0d35d8d45a3d73184d29a.png)

---

<div class="post-metadata">

**Author:** ![sparklingRhubarb](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sparklingRhubarb](https://forum.juce.com/u/sparklingRhubarb)\
**Post date:** [August 27, 2020, 12:59pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/2 "2020-08-27T12:59:11Z")

</div>

For our japanese translations, we always install another font along with our plugins. It may just be a font issue.

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 27, 2020, 1:00pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/3 "2020-08-27T13:00:34Z")

</div>

It just ignores the whole fallback font thing. We could fix it by swapping the font entirely I guess, but I can’t help feeling it shoudl just use the OS fallback fonts properly so it can display any language without the user having to install/select a specific langauge support.

---

<div class="post-metadata">

**Author:** ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)\
**Post date:** [August 27, 2020, 1:08pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/4 "2020-08-27T13:08:20Z")

</div>

TextLayout FTW !

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 27, 2020, 1:19pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/5 "2020-08-27T13:19:20Z")

</div>

Yes - but TextEditor doesn’t use it 🙂

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 2, 2020, 1:07pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/6 "2020-09-02T13:07:46Z")

</div>

@ed95 Can we get some feedback from team JUCE on this?

It’s been an issue since 2008 … maybe?

> [@About drawText, TextLayout and japanese text display](https://forum.juce.com/t/about-drawtext-textlayout-and-japanese-text-display/13624/2):
>
> Bumping! Any best practices or more experience here? Clearly Jules has thought about this but I'm having trouble finding The JUCE Way to do it.&nbsp; If I make a file named&nbsp;中岡 将二郎, it shows up with the wrong characters in the&nbsp;Juce Demo file browser&nbsp;dialog. However, I can cut&nbsp;and paste these wrong characters&nbsp;from the Juce dialog into another Mac app such as TextEdit, and there they display correctly.&nbsp; In general, Mac OS apps such as&nbsp;TextEdit, the Finder, and XCode can correctly display a UTF-8 encod…

> [@Japanese input](https://forum.juce.com/t/japanese-input/2569):
>
> Hi Jules, I’m trying to input Japanese character using TextEditor/Label components on Mac, but I can input only first one letter. As for Japanese, two characters or more might be input. Probably, Korean and Chinese also have the same situation. Therefore I added the following changes. juce\_mac\_Windowing.cpp OSStatus handleTextInputEvent (EventRef theEvent) { #if 0 // Original code UniChar uc; GetEventParameter (theEvent, kEventParamTextInputSendText, typeUnicodeText, 0, sizeof (uc), 0, &uc…

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 7, 2020, 8:32am UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/7 "2020-09-07T08:32:44Z")

</div>

bump!

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 14, 2020, 11:04am UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/8 "2020-09-14T11:04:46Z")

</div>

bump!

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 21, 2020, 9:15am UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/9 "2020-09-21T09:15:31Z")

</div>

bump!

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 28, 2020, 9:56am UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/10 "2020-09-28T09:56:31Z")

</div>

bump!

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [September 28, 2020, 2:18pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/11 "2020-09-28T14:18:57Z")

</div>

We can put this on the backlog but the team is pretty swamped right now so it’s unlikely to get looked at soon. Sorry!

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 28, 2020, 2:33pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/12 "2020-09-28T14:33:56Z")

</div>

Ok - I mainly wanted to know:

- Am I doing something wrong or is it really broken? I think it’s really broken.
- Are you going to look at it any time soon, otherwise we will need to get someone to patch TextEditor which I think will be unpleasant.

It does seem like it ought to be pretty important though 🙂

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [September 28, 2020, 3:12pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/13 "2020-09-28T15:12:00Z")

</div>

From your post and the other forum posts it seems like it’s an issue with `TextEditor` so patching that seems like the way to go. Like I said, it’s unlikely that we’ll be able to look into it soon but if you find a way to get it working we’d be happy to look at a patch!

---

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [September 28, 2020, 6:45pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/14 "2020-09-28T18:45:06Z")

</div>

A proper font fallback would be so helpful, but i mentioned this in the last couple of years (read 10) a few of times already. We all understand you guys are very busy, but features like this, that actually once worked, are so fundamental that it should actually be on the top of the list not the bottom.

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [September 28, 2020, 6:51pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/15 "2020-09-28T18:51:07Z")

</div>

> [@Rebbur](#):
>
> A proper font fallback

That would really simplify fixing TextEditor

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 28, 2020, 8:01pm UTC](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/16 "2020-09-28T20:01:38Z")

</div>

I could swap you for some really sexy upgrades to ScrollBar we have. TextEditor is slightly scary. :). Does it do centered text yet, I remember thinking about that once and it took an hour to figure out which way up to hold hte source code to read it…
