# Different behaviour of TextEditor on macOS and Windows

**URL:** <https://forum.juce.com/t/different-behaviour-of-texteditor-on-macos-and-windows/25704>\
**Category:** MacOSX and iOS\
**Created:** [December 22, 2017, 12:57pm UTC](https://forum.juce.com/t/different-behaviour-of-texteditor-on-macos-and-windows/25704 "2017-12-22T12:57:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 22, 2017, 1:35pm UTC](https://forum.juce.com/t/different-behaviour-of-texteditor-on-macos-and-windows/25704/3 "2017-12-22T13:35:51Z")

</div>

FYI, make sure you’ve read this:

> [@Embedding unicode string literals in your cpp files](https://forum.juce.com/t/embedding-unicode-string-literals-in-your-cpp-files/12600):
>
> This topic seems to come up again and again, so I thought I'd make a sticky post here to avoid having to repeatedly explain it... We regularly get people saying "The fonts are broken, my Chinese/Japanese/etc text won't display correctly!" And the most common reason for this has nothing to do with fonts or graphics, it's because people have written code like this: String textToDisplay = "一些文字"; The code above is going to screw up the encoding&nbsp;in at least some&nbsp;situations, depending on the&nbsp;compi…

---

_[View the full topic](https://forum.juce.com/t/different-behaviour-of-texteditor-on-macos-and-windows/25704)._
