# Report - Pie chart: Unicode for labels

**URL:** <https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300>\
**Category:** Ignition\
**Created:** [January 24, 2022, 10:15am UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300 "2022-01-24T10:15:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojoeswa](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mojoeswa](https://forum.inductiveautomation.com/u/mojoeswa)\
**Post date:** [January 24, 2022, 10:15am UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/1 "2022-01-24T10:15:53Z")

</div>

Hi. I get the wrong formatting in my pie chart when I use special characters. In my script datasource I have tried with u “m³”, but it is displayed as Âm³. What can I do?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7ad299aa78c88179b74e0a6057a2c56029501ac5.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/70e8deadbd82b403b80478c5858a73b0acf9954a.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2bed2d8848e3564b57c5e33c92cb512612cbe620.png)

---

<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:** [January 24, 2022, 12:55pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/2 "2022-01-24T12:55:50Z")

</div>

I see the `str()` function where you are generating rows. That reverses the effect of the u’’ syntax.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 24, 2022, 3:16pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/3 "2022-01-24T15:16:39Z")

</div>

You can try using the `unicode()` builtin instead of `str()`, or simply avoid that type coercion for known types.

---

<div class="post-metadata">

**Author:** ![mojoeswa](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mojoeswa](https://forum.inductiveautomation.com/u/mojoeswa)\
**Post date:** [January 24, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/4 "2022-01-24T16:26:37Z")

</div>

I erased str() and added Alias1 = u"{0}".format(data[‘AliasColumn1’]) and now its working!!.  
Thx alot for helping me!!!

---

<div class="post-metadata">

**Author:** ![mojoeswa](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mojoeswa](https://forum.inductiveautomation.com/u/mojoeswa)\
**Post date:** [January 24, 2022, 4:43pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/5 "2022-01-24T16:43:40Z")

</div>

I have another problem with the Report - Bar Chart component. It can display special characters like “åäö”, but not m³…

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/1/3101473954932551c67ad38cdd82c52af84ff400.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/2/32fead409f0638def2b83a1667bc428d0d4bf9bd.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d753118057946b3f7a2802c4e816b1a70ab57764.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/0/80f576e7d931a5a326915f2d75d2e8f97ed7c2b2.png)

---

<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:** [January 24, 2022, 4:52pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/6 "2022-01-24T16:52:09Z")

</div>

Reporting isn’t scripting. It doesn’t use the u’’ prefixes at all, and I don’t think it needs them.

---

<div class="post-metadata">

**Author:** ![mojoeswa](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mojoeswa](https://forum.inductiveautomation.com/u/mojoeswa)\
**Post date:** [January 24, 2022, 5:03pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/7 "2022-01-24T17:03:17Z")

</div>

The source dataset comes from a script.

---

<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:** [January 24, 2022, 5:13pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/8 "2022-01-24T17:13:15Z")

</div>

Ah, I see. That is probably a problem with the font. Not all fonts implement all characters.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 24, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/report-pie-chart-unicode-for-labels/55300/9 "2022-01-24T17:16:54Z")

</div>

I think reporting is mangling the data keys, in some misguided attempt at sanitization.

Unfortunately I’m not sure if there’s a good fix. You could probably apply correctly encoded names in `configureChart`, but how would you know the correct name(s) to reapply outside of hardcoding things?
