# Unicode Characters Like ° and ² Not Displaying Correctly in Tree Component Labels

**URL:** <https://forum.inductiveautomation.com/t/unicode-characters-like-and-not-displaying-correctly-in-tree-component-labels/108991>\
**Category:** General Discussion\
**Tags:** ignition81, perspective\
**Created:** [July 28, 2025, 9:29am UTC](https://forum.inductiveautomation.com/t/unicode-characters-like-and-not-displaying-correctly-in-tree-component-labels/108991 "2025-07-28T09:29:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOKULAKANNAN\_P](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@GOKULAKANNAN\_P](https://forum.inductiveautomation.com/u/GOKULAKANNAN_P)\
**Post date:** [July 28, 2025, 9:29am UTC](https://forum.inductiveautomation.com/t/unicode-characters-like-and-not-displaying-correctly-in-tree-component-labels/108991/1 "2025-07-28T09:29:31Z")

</div>

Hi,

I'm using the Tree component in Ignition Perspective, and I want to show units like `m/s²` and `°C` in the label.

When I type them manually in the Designer, they show correctly.

But when I set the label using a script, they show incorrectly as `m/sÂ²` or `Â°C`.

How can I display these Unicode characters properly through scripting?

Thanks!  
Gokulakannan.P

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 28, 2025, 10:38am UTC](https://forum.inductiveautomation.com/t/unicode-characters-like-and-not-displaying-correctly-in-tree-component-labels/108991/2 "2025-07-28T10:38:35Z")

</div>

In python, **string constants** with non-ASCII character's need to have the unicode prefix or the characters will be mangled.

This will work: `u"°C"` and this will not: `"°C"`.
