This is a migrated thread and some comments may be shown as answers.

UTF-8 In Reports

7 Answers 1061 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick Devore
Top achievements
Rank 2
Nick Devore asked on 26 Apr 2007, 02:17 PM
I've got some Traditional Chinese characters stored in a NTEXT field in our Sql Server 2000 machine.  When I pull it from the db and stick it into a field in a report, it looks fine in the Web Report Viewer.  When I export to PDF, the characters are just the empty boxes.  I have the Asian fonts installed on my machine, so I'm suspecting it has something to do with the Encoding parameter of the Render function for the ReportProcessor.  If that is true, what encoding parameter do I pass in?

(In case you can't guess, I'm new to generating unicode stuff ;) )

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Apr 2007, 09:08 AM
Hello Nick,

Can you tell us the name of the Font that you are using (or send it to us if it is free to use, i.e. not copyrighted) so that we can try to reproduce your case. Also, a little sample excerpt form the Traditional Chinese text will help us a lot.

Meanwhile, can you try the following. There is font called Arial Unicode that has all possible Unicode ranges. You can install it on your system following the instructions at the bottom of this page: http://support.microsoft.com/kb/287247

Try setting the Font of the TextBoxes that contain the Traditional Chinese characters to ArialUnicode and see whether the PDF shows up right.

P.S. The Encoding parameter of the Render function is an out parameter and has nothing to do with the Fonts in PDF.

Sincerely yours,
Rossen
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nick Devore
Top achievements
Rank 2
answered on 30 Apr 2007, 02:55 PM
I am using just plain ol' Arial that comes installed on the machine.  The Chinese string I'm displaying is just copied from a news article on tw.yahoo.com and it begins like this:

在無重力、沒有氧氣的太空裡,太空人一定要靠著太空衣保護才能保命,不過美國太空總署
(string above displays Chinese characters on my machine in this box but I have the Asian fonts installed)

I will try the Arial Unicode and see where that gets me.
0
Nick Devore
Top achievements
Rank 2
answered on 30 Apr 2007, 03:24 PM
I installed the Universal Arial font.  It displayed correctly in the browser Report Viewer, but when I exported to PDF, the PDF showed empty boxes.
0
Rossen Hristov
Telerik team
answered on 02 May 2007, 12:17 PM
Hi Nick,

Can you send us the actual Report file (source code) and the PDF file, so that we can take a look "inside" and try to determine the cause for the problem. We will try to reproduce it over here. Another important question is what is the size of your PDF in megabytes?

Also, tell us the exact version of the Adobe Reader that you use to view the PDF. On our machines, with Adobe Reader 6.0 we see the Chinese text that you sent us perfectly by using the Arial Unicode MS Font.

I am attaching the report that we tested with. It is very simple and unbound -- only one TextBox with font Arial Unicode MS in the report header. You can give it a try on your machine and see what happens. Try all formats -- HTML, Image, PDF and tell us the results.

Kind regards,
Rossen
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roman
Top achievements
Rank 1
answered on 09 Nov 2012, 10:02 AM
We have this exact same problem.  Our report uses only Arial Unicode MS.  Exports to Microsoft Excel work fine (the East Asian text is visible).  However, exports to PDF result in empty boxes instead of text.

I should add that PDFs created on my development machine work fine.  But when we deploy to our server (Windows Server 2008 Standard), the PDFs once again result in empty boxes.

Any suggestions?


0
Aron
Top achievements
Rank 2
answered on 23 Jan 2013, 02:07 PM
Hello,
I'm having the same issue with Thai Characters.
Works fine in Web Viewer, but I just get blank / or corrupt (boxes) text areas in the PDF export.
Also using plain Arial font.
0
Steve
Telerik team
answered on 23 Jan 2013, 06:16 PM
Hello guys,

@Roman: you should install Arial Unicode MS font on your server and restart it.

@Aron: plain Arial font does not contain Thai scripts, thus there are no such characters to be embedded in the PDF. You should use a font that supports Thai characters, such as Arial Unicode MS.

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Nick Devore
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Nick Devore
Top achievements
Rank 2
Roman
Top achievements
Rank 1
Aron
Top achievements
Rank 2
Steve
Telerik team
Share this question
or