How to display Chinese characters properly in PDF reports?

Bug #633991 reported by Stephane Wirtel (OpenERP)
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Invalid
Low
Unassigned
Trunk
Invalid
Low
OpenERP sa GTK client R&D
Odoo Server (MOVED TO GITHUB)
Invalid
Medium
Unassigned

Bug Description

Hi all,

We have a problem with the Chinese characters.

Could you check and fix this bug in 5.0 and 6.0.

Thank you,

Regards,

Tags: maintenance
Revision history for this message
Marco Dieckhoff (dieck) wrote :

Hi!
We encountered this bug and reported it to OpenERP.

We installed a new database with some standard modules, and used the Chinese Chart of Accounts settings.

Afterwards, the Chart fo Accounts looks like this:
http://img808.imageshack.us/i/chinesecharacterrubbish.jpg/

Chinese characters are properly displayed e.g. in partner names.

Revision history for this message
xrg (xrg) wrote :

In Greece, we definitely use utf-8 characters for the chart of accounts and other data. So far, I can verify that utf-8 gets properly handled in those cases.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,
It's absolutely working fine in gtk. see the attached .png
I confirm printing of reports does not support the chinese characters.
So I am assigning the bug to the correct project and team.

Thanks

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
Changed in openobject-server:
importance: Low → Medium
Revision history for this message
xrg (xrg) wrote :

Can we have a little more information, again, on this bug?
Does it occur in some client, Gtk, web? on reports?

Note that the screenshot referenced above may be the result of the *client system*, like a badly configured web-browser. In that case, the bug would just be invalid.

So far, unicode support seems fine.

Changed in openobject-server:
status: Confirmed → Incomplete
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello xrg,

From the screenshot provided in comment # 1 seems that the problem is in printing reports.

Thanks,

Revision history for this message
digitalsatori(Shine IT) (digitalsatori) wrote :

The problem describe in comment #1 is due to the transcoding problem in the module l10n_chart_cn. (see bug report: https://bugs.launchpad.net/openobject-addons/+bug/625019).

OpenERP also has another problem when printing report with Chinese character , it produces gibberish fonts.

We Chinese team tackled these two major character coding problems long time ago in our project repository. (http://code.google.com/p/openerp-community-addons/downloads/list),

We will submit these modules to official branch soon after some more test.

Changed in openobject-server:
status: Incomplete → Invalid
Changed in openobject-server:
status: Invalid → New
status: New → Confirmed
summary: - Don't support the chinese characters
+ How to display Chinese characters properly in PDF reports?
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

(Sorry for the status spam, was trying to convert to a question but Launchpad crashes.. happens for bugs with a too long history = bug 438116)

@digitalsatori: I understand why you marked this bug a duplicate of bug 625019, but I would like to make them separate, just to be sure that people find this one easily as well.
Indeed the issue in comment #1 is just a bad encoding in the old l10n_chart_cn modules in extra-addons (5.0 and 6.0), and people can instead use the modules on your googlecode project, or simply the new chart of accounts "l10n_cn" that was merged and is directly included in OpenERP 6.0 official addons.

But this bug also discusses the issue of chinese characters in PDF reports, which is really just a problem of fonts. Basically for chinese-speaking countries, you need to tell the report engine to use chinese fonts in the PDFs, as the default international fonts do not have support for chinese characters. A possible solution is to install the base_report_cn module that you created, similar to the base_report_unicode module from Gábor Dukai: http://bit.ly/g5vIPp

Perhaps you could also add your base_report_cn module in the extra-addons if it is correctly tested now, to help others find it more easily?

Changed in openobject-server:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → nobody
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.