confluence PDF preview shows strange characters for Chinese

When I use the PDF previewer that contains a document that has Chinese characters, it shows strange characters instead of the normal hanzi.  When the PDF is downloaded the characters are just fine, they are only mumbled in the previewer.

Characters such as the following  永久许可证  appears as 8E,`

2 answers

1 accepted

2 votes
Accepted answer

Hi Robert,

Link Preview for Confluence maybe helps you. Take a look.



Great thanks. Quick question, how do I use it? There is no real documentation. I installed it and see no new macro. The pdf images are on in the configure section but they do not "pop-up"? please help.

Hi Robert, There is no macro, you only need to add a link pointing to PDF file and do mouse over that link, a popup will appear showing the pdf popup. Probably you need to add some configuration. If it's useful for you and you want use it, I can help you to configure that. Thanks. Cheers, RMRodrigues.

Thanks so much Rui. I added a PDF link and mouse over and nothing. I am using Chrome and I do not have any pop-up blocker or anything. Any thoughts on how to get the pop-up working? If I click on the link, it does shows the PDF, but it always did that. I also tried a simple png file, same results...

Ok. Let's configure that. Firstly, the Link Preview apply the preview using configuration aka jQuery. So, do you have any CSS class on the link you've created? If so, you need go to Link Preview Configuration (JIRA Administration > Add-ons > Look and Feel Section and click on LinkPreview). Example: Your link has a CSS class : "custom-link". In order to configure Link Preview to preview the content of link you need to add the follow configuration on the Apply Elements text area: a.custom-link Save this change and go back to the page that has the link and try it again. Do you have any doubt? Best, RMRodrigues.

As simple as create a blank page with only a link to a png file via the "link" in the menu bar. Save that. Mouse over the link... ...nothing. I went to Confluence admin ... Link Preview (not JIRA). Nothing was listed in Preview CSS, and I could not add anything to it. In the Config section I have three sections: CSS Classes to Preview Content lists: a.filename and three others which sounds right to me. The filetypes lists both png and pdf, good there Nothing under Preview CSS, and cannot add any there. Sorry I am still lost...

Which CSS class are you using on you link?

Ummm... None that I know of. When I click the link it takes me to, I did not add any specific CSS class. I clicked on link and added an attachment. Not sure what Confluence adds...

You can define Link Preview to work for all links but it's is not a good solution. The best solution, in this case, is edit your page and add a css class in your link. To do that you need edit the page and see the source of the pages as a HTMl (There is that option) and the <a> element related with your lin you can add this calss="my-custom-link". After save this change you need go to the Link Preview configuration and add this ( to the CSS classes. Can you try to do this?

Robert, TIP: If you add the class="external-link" you don't need add this configuration to Link Preview because it's configured by default.

We lost edit as HTML when we upgraded to 5.7, if there is a way to do that again I would love that.

Yes, there is another solution. There is always a solution, or not (hehe). You can get it working by adding the Attachments macro. This macro list all attachments of the page. Each link has a css class "filename". Check if you have this class configured on Link Preview, otherwise, you can add this "a.filename" on your configuration.

Any progress on that? Is it working?

I have the attachments macro. I ended up uninstalling the link preview as this turned out to be not a good solution for my user. They wanted the preview to be displayed without having to mouse over. Thanks for all your help though. I marked it as answered as I am sure it would of worked.

Hi @Rui Rodrigues , Does the 'Link Preview for Confluence' plugin work with Word files as well? Thanks in advance. Nicolas

Hi Nicolas Casel, Currently, the Link preview does not preview Word documents. Thank you.

SharpView High Resolution PDF Viewer for Atlassian Confluence supports Chinese characters - among other features. It has been supported, maintained, and updated for years, since Nov 2010.

Get eval license by emailing 

Here's a video (we do need new video wink ):

Thanks Elizabeth, we have no need for high resolution previews. We only display Chinese characters in the PDF preview, and this plugin I believe is a little more than needed, and too expensive for us at this time.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you