| Summary: | View report as DOC or PDF, chinese characters are displayed as "?" or missed | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | lonelywolf <ssh_197967> | ||||||||
| Component: | BIRT | Assignee: | Birt-ReportEngine-inbox <Birt-ReportEngine-inbox> | ||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||
| Severity: | critical | ||||||||||
| Priority: | P3 | CC: | bluesoldier, jianchao.li | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 3.7.2 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | Obsolete | ||||||||||
| Attachments: |
|
||||||||||
|
Description
lonelywolf
Created attachment 210347 [details]
The report includes chinese and use chinese csv file as data source
when you test it ,please modify the the data source file path,the default dir is /home.
Created attachment 210348 [details]
CSV file as data source
The file will be data source file , please place it to /home directory. Or you can modify the report file and place the directory what you want to
Have you installed Chinese character set on the Linux machine? To support Chinese character display, the Chinese character set need to be installed on the OS first. Set as worksforme. set status (In reply to comment #5) > set status Yes I installed the chinese character. It can work well when view it as HTML and PPT. For doc, all chinese character is displayed as "?".For PDF, some character is missed. Could you please attache the generated doc file us to investigate? Created attachment 210488 [details]
Generated doc file
If no font can display a character, DOC and PDF emitter will replace the character with the missing char '?'. It works well on my Linux platform in which the Chinese fonts/font families that specified by the report are properly installed. Please check your font configuration. (In reply to comment #9) > If no font can display a character, DOC and PDF emitter will replace the > character with the missing char '?'. It works well on my Linux platform in > which the Chinese fonts/font families that specified by the report are properly > installed. > Please check your font configuration. Yes, I check the source code and find it will replace with "?"But why the PPT and HTML work well? Did you test my added birt file? if yes, could you tell me which package should be installed on Linux? thanks (In reply to comment #10) > (In reply to comment #9) > > If no font can display a character, DOC and PDF emitter will replace the > > character with the missing char '?'. It works well on my Linux platform in > > which the Chinese fonts/font families that specified by the report are properly > > installed. > > Please check your font configuration. > > Yes, I check the source code and find it will replace with "?"But why the PPT > and HTML work well? Did you test my added birt file? if yes, could you tell me > which package should be installed on Linux? thanks PPT and HTML generation does not include the font resources in the machine that generating the file, so that PPT and HTML emitters output the unknown characters's information to the target file. The default font mapping for font “sans-serif” is specified as "Lucida Sans" in org.eclipse.birt.report.engine.fonts\fontsConfig_linux.xml. To make it work well, you should install the "Lucida Sans" font on your machine, or modified the default font mapping for "sans-serif". Set as workforme per comment #11 |