Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese character are strange character (mojibake) at the graph in a PDF report #3434

Closed
anonymous-matomo-user opened this issue Oct 12, 2012 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

Piwik version 1.8.4.
Only the graphs has all Japanese displayed as mojibake in a PDF report.
Keywords: PDF report

@anonymous-matomo-user
Copy link
Author

Attachment:
my_web_-2012__10_11_-_-2.pdf

@mattab
Copy link
Member

mattab commented Oct 19, 2012

Solution suggested:

Please open a file "/piwik/plugins/ImageGraph/API.php" and edit line 86 below.

const UNICODE_FONT = 'unifont.ttf';

Please rewrite the following.

const UNICODE_FONT = 'VL-Gothic-Regular.ttf';


I support this font does not work in all languages, so we should only use it for Japanese.

let's change it from constant to a member.

@anonymous-matomo-user
Copy link
Author

Yes, this suggestion is provisional.
It should be set according to the user's language.

@mattab
Copy link
Member

mattab commented Jan 10, 2014

I think this bug was fixed in 2.0 - can you please confirm it is now working OK in japanese?

@anonymous-matomo-user anonymous-matomo-user added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants