Community
Participate
Working Groups
Build Identifier: Version: 2.6.1.v20100618-3507w31211924 Build id: v20100915-1750 Design one report includes Chinese character and view it as DOC on Linux. Then open it on windows, Chinese character are displayed as "?". It can work well on Windows platform. Reproducible: Always Steps to Reproduce: 1.Design one report includes Chinese character and use one csv file as data source 2.View it as DOC it will save one doc file 3.Open it on windows. Chinese character are displayed as "?". The report and CSV file will be added as attachment
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