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
Encoding issues #35
Comments
Can you try putting this line:
as the first line of your controller (possibly the Model as well) that is rendering the PDF? here's an example repository of a project that does just that (and has some special chars on the pdf) I think that's all you should need to do. Please report back and let me know how that went. |
i had the same issue, putting encoding: utf-8 didn't solve the problem |
Are you using the latest version of this plugin from Github? I only recently made the streams work in binary mode in this commit: |
I had the same issue. To solve it, i add at the beggining of my view this line : Now it works fine and I add nothing in my controller (no |
@LuckyNumberSlevin: Awesome! That's exactly the type of thing that keeps me up at night. I think I'll throw something about that in the README. |
Got it! thanks a lot guys. I'm using the lib in a project in a project & it works well, maybe i'll switch to the gem to simplify management with bundler. |
Thanks luckynumberslevin ! Makes the job. |
I've added a note to the README in this commit: Thanks for all your participation! |
Hi,
I've been able to generate PDF documents under Ubuntu and Rails 3.
The problem I'm facing is with latin characters like (á, é, í, ó, ú). They are not being rendered well in the PDF document. Instaed i'm getting the following.
I've tried adding
:encoding => "utf8"
but nothing happened.Any workaround?
The text was updated successfully, but these errors were encountered: