简体   繁体   中英

SQL Server Reporting Service render to pdf character encoding issue

My problem is rather hard to explain. I have a SSRS 2008 R2 Generating pdf files in Persian language. Generated pdfs are completely readable and correct in view. But, I can not search text in them. I have tracked problem and saw that embedded fonts in pdf are using special characters that are not available in normal font for example one of the characters is U+10017e witch is not a normal character.

To me it seems that SSRS has ignored characters that where already available and created a font with special characters and then converted my text to that characters.

I have created pdfs with same fonts using other tools and no problem. I have tried to change the encoding of the pdf files but the problem is not in the encoding characters are changed altogether.

I have no idea where to look. Any hint will be appreciated.

--Edit--

Sample of pdf file

This PDF files comes with the broken CMAP (the internal map that maps visual glyphs to their Unicode values). Microsoft aknowledges this issue with some locales in their KB One of the solution they suggest is to make sure the server's locale is set to English. So maybe you should try to change the locale to/from English to see how it affects the PDF export.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM