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

utf 8 chars are not well rendered #21

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 2 comments
Open

utf 8 chars are not well rendered #21

GoogleCodeExporter opened this issue Jun 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. create a servlet on tomcat and a servlet use htmlimagegenerator
2. use html as below:

HtmlImageGenerator imageGenerator = new  HtmlImageGenerator();
imageGenerator.loadHtml(html);
return imageGenerator.getBufferedImage();
3.  the image generated has not utf 8 chars but contains [][][][] instead of 
arabic chars

What is the expected output?
arabic chars
What do you see instead?
[][][][][]

i think depends on tomcat setting, but i set tomcat to manage utf8
and as well request and response servlet are utf 8 set as follows:
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=UTF-8");


What version of the product are you using? 0.9 version
On what operating system?  unix


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 6 Aug 2014 at 7:07

@syncwt
Copy link

syncwt commented Nov 28, 2017

did you solve problem? same issue

@hkirk
Copy link
Owner

hkirk commented Nov 28, 2017

Nope haven't had to much time to look at this library. But if you would like to - a PR would be appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants