Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Double-byte characters not displayed in MS Word export
Double-byte characters not displayed in MS Word export [message #653000] Mon, 07 February 2011 21:48 Go to next message
Angela is currently offline AngelaFriend
Messages: 2
Registered: February 2011
Junior Member
Hello,

Using BIRT 2.3.2 on AIX, certain character sets are not rendered correctly when the report is exported from the Web viewer to .doc format. The characters show correctly when exported to PDF or Excel, and the problem does not happen on Windows.

For example, Korean characters in an export generated on AIX are converted to ???? and displayed in the Times font. However on Windows the characters display correctly and Batang is used.

The default fontsConfig.xml file is in use. Can I solve this by configuring that file? Or do I need to install fonts on the server?

Thanks,
Angela
Re: Double-byte characters not displayed in MS Word export [message #653225 is a reply to message #653000] Tue, 08 February 2011 21:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Angela,

Have you looked for the Batang font on the AIX server in the paths
specified in the fonts config?

Jason

On 2/7/2011 4:48 PM, Angela wrote:
> Hello,
>
> Using BIRT 2.3.2 on AIX, certain character sets are not rendered
> correctly when the report is exported from the Web viewer to .doc
> format. The characters show correctly when exported to PDF or Excel, and
> the problem does not happen on Windows.
>
> For example, Korean characters in an export generated on AIX are
> converted to ???? and displayed in the Times font. However on Windows
> the characters display correctly and Batang is used.
>
> The default fontsConfig.xml file is in use. Can I solve this by
> configuring that file? Or do I need to install fonts on the server?
>
> Thanks,
> Angela
Re: Double-byte characters not displayed in MS Word export [message #654953 is a reply to message #653000] Thu, 17 February 2011 18:00 Go to previous messageGo to next message
Angela is currently offline AngelaFriend
Messages: 2
Registered: February 2011
Junior Member
Hi Jason,

Thanks for the suggestion. Batang was not on the AIX server. I believe it is a proprietary Microsoft font, but for testing purposes I copied batang.ttc to one of the default folder paths in the config file. This did not have any effect.

In the XML source of the AIX-generated doc, the font is specified as Times:
<w:rFonts w:ascii="Times" w:fareast="Times" w:h-ansi="Times" w:cs="Times"/>

In the XML for the "successful" doc, the font for the Korean text has Unicode values rather than a specific font name:
<w:rFonts w:ascii="&#xbc14;&#xd0d5;" w:fareast="&#xbc14;&#xd0d5;" w:h-ansi="&#xbc14;&#xd0d5;" w:cs="&#xbc14;&#xd0d5;"/>

From this I wondered if it was up to the client to determine what font to use, and Word on my client was selecting Batang. I'm not sure if this makes sense. Do you know is there is a specific font requirement on the server for this to work correctly?

Thanks,
Angela

Re: Double-byte characters not displayed in MS Word export [message #654970 is a reply to message #654953] Thu, 17 February 2011 19:45 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Is the font file compatible with AIX? Are you using any of the font
mapping in the fonts config file?

On 2/17/2011 1:00 PM, Angela wrote:
> Hi Jason,
>
> Thanks for the suggestion. Batang was not on the AIX server. I believe
> it is a proprietary Microsoft font, but for testing purposes I copied
> batang.ttc to one of the default folder paths in the config file. This
> did not have any effect.
>
> In the XML source of the AIX-generated doc, the font is specified as
> Times: <w:rFonts w:ascii="Times" w:fareast="Times" w:h-ansi="Times"
> w:cs="Times"/>
>
> In the XML for the "successful" doc, the font for the Korean text has
> Unicode values rather than a specific font name:
> <w:rFonts w:ascii="&#xbc14;&#xd0d5;" w:fareast="&#xbc14;&#xd0d5;"
> w:h-ansi="&#xbc14;&#xd0d5;" w:cs="&#xbc14;&#xd0d5;"/>
>
> From this I wondered if it was up to the client to determine what font
> to use, and Word on my client was selecting Batang. I'm not sure if this
> makes sense. Do you know is there is a specific font requirement on the
> server for this to work correctly?
>
> Thanks,
> Angela
>
>
Previous Topic:Formatting Date as String in script
Next Topic:multiple masterpages (page orientation)
Goto Forum:
  


Current Time: Thu Dec 18 21:08:02 GMT 2014

Powered by FUDForum. Page generated in 0.02130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software