Encoding problem in OpenOffice Plugin

Bug #697066 reported by OpenBMS JSC
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

I use base_report_designer to open an existing report (RML) and it produced the following error

[2011-01-04 10:36:11,175][demo60] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/var/local/software/openerp-v6.0dev/server/bin/addons/base_report_designer/base_report_designer.py", line 68, in report_get
    'report_rml_content': report.report_rml_content and base64.encodestring(report.report_rml_content) or False
  File "/usr/lib/python2.6/base64.py", line 315, in encodestring
    pieces.append(binascii.b2a_base64(chunk))
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u1eef' in position 55: ordinal not in range(256)

addons/ : <email address hidden> 4167
addons-community/ : <email address hidden> 293
addons-extra/ : <email address hidden> 5141
server/ : <email address hidden> 3203
web/ : <email address hidden> 4236

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Phong,

Which locale you have been used? Please provide the more information or proper steps to reproduce the error.

Thanks.

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

I'm using Vietnamese locale. I think the report uses some characters that must be in utf-8.

Steps to reproduce: OpenERP Report Designer ==> Open an existing report ==> error in the logfile, the UI shows some error (I forgot to capture screen)

Revision history for this message
Amit Parik (amit-parik) wrote :

Phong,

Thank you very much for providing accurate information.
I confirm this issue.

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
summary: - UnicodeEncodeError: 'latin-1' codec can't encode character u'\u1eef' in
- position 55: ordinal not in range(256)
+ Encoding problem in OpenOffice Plugin
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello,

The fix has been committed to lp:~openerp-dev/openobject-addons/sbg-dev-addons1.

Soon it will be merged into main addons.

Thanks.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello,

The fix has been committed to lp:~openerp-dev/openobject-addons/sbh-dev-addons1.

Soon it will be merged into main addons.

Thanks.

Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in openobject-addons:
milestone: none → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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