# How to correctly use UTF8 with JUCE strings

**URL:** <https://forum.juce.com/t/how-to-correctly-use-utf8-with-juce-strings/10379>\
**Category:** General JUCE discussion\
**Created:** [April 30, 2013, 11:28pm UTC](https://forum.juce.com/t/how-to-correctly-use-utf8-with-juce-strings/10379 "2013-04-30T23:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephanecharette](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephanecharette/32/83_2.png) [@stephanecharette](https://forum.juce.com/u/stephanecharette)\
**Post date:** [April 30, 2013, 11:28pm UTC](https://forum.juce.com/t/how-to-correctly-use-utf8-with-juce-strings/10379/1 "2013-04-30T23:28:50Z")

</div>

Is this the correct way to instantiate a UTF8 character, or am I simply lucky this seems to work for me?

[color=#0000BF] String foo = String::fromUTF8( “blah \u2022 blah” ); // e.g., bullet[/color]

I see other things in C++11, such as U"…", u"…", and u8"…" but while I can guess what u8 does, I still haven’t found a decent description of the difference between U"…" and u"…"

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [May 1, 2013, 12:35am UTC](https://forum.juce.com/t/how-to-correctly-use-utf8-with-juce-strings/10379/2 "2013-05-01T00:35:45Z")

</div>

The easiest thing to do is use the Introjucer’s “UTF-8 String Literal Converter” from the tools menu.  
E.g. “hello • world” becomes:

```auto

```
