Unicode Text in Jasper's StaticText

Hello,

Unicode text incorrectly displayed in Jasper Report using StaticText element, I can see ‘???’ symbols. But Unicode text (from MSQL) successfully displayed using Jasper’s TextField element.

(ReportServer RS3.0.3-6002, Win 10 Pro 64-bit, MSQL Express 2017).

JRXML file:

<?xml version="1.0" encoding="UTF-8"?>

<jasperReport xmlns=“http://jasperreports.sourceforge.net/jasperreports” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name=“JReport1” pageWidth=“595” pageHeight=“842” columnWidth=“555” leftMargin=“20” rightMargin=“20” topMargin=“20” bottomMargin=“20” isFloatColumnFooter=“true” uuid=“824e6be0-0464-47df-bb43-b3b5f35c40f4”>










































































































Hi field_bus,

so if I understand correctly, the data is showing correctly, only the static text (“Elektroenerģijas patēriņš (kW/h)”, “Skaitītāji”, “Patēriņš”) is not showing correctly?
Have you tried to write the unicode codes directly, as shown here? http://jasperreports.sourceforge.net/sample.reference/unicode/index.html

Regards,
Eduardo

Thank you very much for information, but I am not successful yet.

I made “TitleStr” parameter

and added $P{TitleStr} expression in TextField.

Hi field_bus,

but did you try by inserting the utf-codes, e.g.?:

\u0402 \u040B \u040F \u0414 \u0416 \u0418 \u041B \u0426 \u0429 \u042E

Regards,
Eduardo

Hi edulid,

yes, it’s work. Thank you very much.