# Unicode fonts displaying properly in Report preview in Designer but not in Perspective view

**URL:** <https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 8, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578 "2024-06-08T14:06:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maqsudbd](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@maqsudbd](https://forum.inductiveautomation.com/u/maqsudbd)\
**Post date:** [June 8, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/1 "2024-06-08T14:06:46Z")

</div>

Hello Support

I am struggling to generate report with Unicode fonts. The report is showing properly when I am previewing in designer. But when I am viewing it in a perspective session with report viewer, it is not displaying properly. My setup is a test environment where Ignition Gateway, Designer and Report Viewer are all running in the same machine.

The screenshot is attached.

 ![Designer](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a9ab706791abfda16d40b3db6abf0d8fcbdc38cd.png)  
 ![Perspective](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/1/b18cac70dab94672c01e531aad10f863a518597b.png)

What could be the issue and what could be the solution?

Thanks in advance for your support.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 10, 2024, 10:19am UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/2 "2024-06-10T10:19:23Z")

</div>

> [@maqsudbd](#):
>
> Hello Support

This is not support. We're just a bunch of users who like to share what we know.  
You can contact support here: [https://support.inductiveautomation.com/hc/en-us](https://support.inductiveautomation.com/hc/en-us)

What characters are not displaying properly ?  
The only difference I can spot is here:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/1/c178b55cca648c2d074b33f00016583f0059f92c.png) vs ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/92d898cac460f2f263ed42c34f3693ba68a5f756.png)

It seems characters positions are swapped, is that the issue ?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [June 10, 2024, 10:30am UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/3 "2024-06-10T10:30:35Z")

</div>

I had something similar and they gave me a solution

> [@UTF-8 special characters "ñ" from Transform Script](https://forum.inductiveautomation.com/t/utf-8-special-characters-n-from-transform-script/91004/2):
>
> You have used non-ASCII characters in jython string constants that do not support them. Use unicode string constants instead, using the u"Mañana" syntax. That lower-cause u before the first quote tells jython to handle the unicode characters correctly. [https://docs.python.org/2.7/reference/lexical\_analysis.html#strings](https://docs.python.org/2.7/reference/lexical_analysis.html#strings)

u may try write your thai text like this:

u"ประเทศไทยเป็นประเทศที่มีความหลากหลายทางวัฒนธรรมและประเพณี มีอาหารที่หลากหลายและอร่อยมาก เช่น ต้มยำกุ้ง ส้มตำ และผัดไทย นอกจากนี้ ประเทศไทยยังมีสถานที่ท่องเที่ยวที่สวยงามมากมาย เช่น เกาะสมุย ภูเก็ต และเชียงใหม่ ทุกๆ ปีมีนักท่องเที่ยวจากทั่วโลกมาเยือนประเทศไทยเพื่อสัมผัสกับวัฒนธรรมที่เป็นเอกลักษณ์และทิวทัศน์ที่งดงาม"

with the u

---

<div class="post-metadata">

**Author:** ![maqsudbd](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@maqsudbd](https://forum.inductiveautomation.com/u/maqsudbd)\
**Post date:** [June 15, 2024, 7:23am UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/4 "2024-06-15T07:23:44Z")

</div>

Hi

Yes. That is the issue. I don't know why it displays properly in preview mode but not in report viewer in a perspective session.

---

<div class="post-metadata">

**Author:** ![maqsudbd](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@maqsudbd](https://forum.inductiveautomation.com/u/maqsudbd)\
**Post date:** [June 15, 2024, 1:44pm UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/5 "2024-06-15T13:44:50Z")

</div>

Hi

I have tried the solution you mentioned but not working in my case. The reporting module not treating the "u" as a command rather as a character to print.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/5/a5c81dad21d1910dc8f84c3369a4bb3273bc4f55.png)

---

<div class="post-metadata">

**Author:** ![maqsudbd](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@maqsudbd](https://forum.inductiveautomation.com/u/maqsudbd)\
**Post date:** [June 15, 2024, 2:30pm UTC](https://forum.inductiveautomation.com/t/unicode-fonts-displaying-properly-in-report-preview-in-designer-but-not-in-perspective-view/91578/6 "2024-06-15T14:30:38Z")

</div>

Hi

One interesting findings: when I schedule the report and generate in any format other PDF, it is working properly. It is only creating problem when generating report in PDF format.

Thanks
