# Subtle Question About Incorrect Unicode Encoding

**URL:** <https://root-forum.cern.ch/t/subtle-question-about-incorrect-unicode-encoding/63748>\
**Category:** Newbie\
**Created:** [June 17, 2025, 3:27pm UTC](https://root-forum.cern.ch/t/subtle-question-about-incorrect-unicode-encoding/63748 "2025-06-17T15:27:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexC](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alexc/32/38068_2.png) [@AlexC](https://root-forum.cern.ch/u/AlexC)\
**Post date:** [June 17, 2025, 3:27pm UTC](https://root-forum.cern.ch/t/subtle-question-about-incorrect-unicode-encoding/63748/1 "2025-06-17T15:27:40Z")

</div>

Hi experts, I have a rather subtle question about using Unicode Characters in my title. I wish to use the plus-minus sign, which is `\u00B1`. It prints out alright in the terminal, yet when I try to put it on my histogram title using `SetTitle()`, a weird looking  
 ![Screenshot 2025-06-17 162313](https://root-forum.cern.ch/uploads/default/original/3X/6/c/6cb3f0a08695d9482b8e9583d5d657fe9af65c41.png)  
was produced instead. The title was originally created as a string, and it had to be converted into a char using the `c_str()` method when fed into `SetTitle()`. Any idea how to remove this A hat? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [June 17, 2025, 3:37pm UTC](https://root-forum.cern.ch/t/subtle-question-about-incorrect-unicode-encoding/63748/2 "2025-06-17T15:37:34Z")

</div>

Hi,

```auto
root [0] const string str_myTitle {"Title 5#pm2"};
root [1] TH1F* myH {new TH1F {"myH", str_myTitle.c_str(), 10, 0, 10}};
root [2] myH->Draw()

```

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/c/6c1c638a8290249ed5c97c53bd5df07f84886fd8.png)
