Forum
Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 PDF Export not support UTF-8 and Arabic
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Abbas.layeghie@gmail.com

Iran
8 Posts

Posted - 04/28/2018 :  11:33:48  Show Profile  Reply with Quote
Hi
Export to PDF is not supporting UTF-8 and Arabic .
characters are not connected together.


HTML is ON

Abbas.layeghie@gmail.com

Iran
8 Posts

Posted - 04/28/2018 :  12:02:15  Show Profile  Reply with Quote
UTF8 and Arabic is not supporting in PDF export and all of the site

sample :
http://reportportal.us/reportportal/Proxy.aspx?reportId=2082


HTML is ON
Go to Top of Page

admin

1609 Posts

Posted - 04/28/2018 :  13:04:41  Show Profile  Reply with Quote
It is required to add N before string literal This is needed to correctly interpret contained Unicode characters.

https://stackoverflow.com/questions/30859697/right-to-left-string-in-sql-server
Go to Top of Page

Abbas.layeghie@gmail.com

Iran
8 Posts

Posted - 04/29/2018 :  07:24:31  Show Profile  Reply with Quote
This solution is correct and worked for showing data in Unicode format, but didn't work on PDF export.
I sent a sample in BUG_2018 Folder in demo site and you can test it.
or test this Query in a sql report :

SELECT top 10
N'#1578;#1587;#1578; #1593;#1585;#1576;#1740;' as UTF_Contnet
,*
FROM QueryFolder

-----------------------------------
Test PDF Export.

Thank you



HTML is ON
Go to Top of Page

Abbas.layeghie@gmail.com

Iran
8 Posts

Posted - 04/29/2018 :  07:26:10  Show Profile  Reply with Quote
quote:
[i]Originally posted by Abbas.layeghie@gmail.com[/i]
[br]This solution is correct and worked for showing data in Unicode format, but didn't work on PDF export.
I sent a sample in BUG_2018 Folder in demo site and you can test it.
or test this Query in a sql report :

SELECT top 10
N'#1578;#1587;#1578; #1593;#1585;#1576;#1740;' as UTF_Contnet
,*
FROM QueryFolder

-----------------------------------
Test PDF Export.

Thank you



sample :
http://reportportal.us/reportportal/Proxy.aspx?reportId=2082


HTML is ON



HTML is ON
Go to Top of Page

admin

1609 Posts

Posted - 04/29/2018 :  12:23:48  Show Profile  Reply with Quote
Go to Admin > Settings > Font Folder Path and set it to your serverís font folder (usually C:\Windows\Fonts).

When Admin > Settings > Language is set to Arabic ReportPortal will use C:\Windows\Fonts\trado.ttf for PDF generation.
Go to Top of Page

Abbas.layeghie@gmail.com

Iran
8 Posts

Posted - 05/01/2018 :  04:51:27  Show Profile  Reply with Quote
quote:
[i]Originally posted by admin[/i]
[br]Go to Admin > Settings > Font Folder Path and set it to your serverís font folder (usually C:\Windows\Fonts).

When Admin > Settings > Language is set to Arabic ReportPortal will use C:\Windows\Fonts\trado.ttf for PDF generation.





I did it. this worked just for report header ,but not for column header and records.

please check my sample report in before replies and test it yourself. it has problem

HTML is ON
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Forum © ReportPortal Go To Top Of Page
Snitz Forums 2000