Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013594Openbravo ERP01. General setuppublic2010-06-09 17:502010-07-23 00:00
networkb 
sivaraman 
highminorrandom
closedfixed 
5
2.50MP18 
2.50MP21 
Core
No
0013594: Error exporting a client with umlaut characters
If you run export client process setting umlaut characters (รค....) in the name, in some environments file generated is not codified in UTF8 so umlaut characters are exported as ?

We have not been able to reproduce it locally but solution was provided and verified for a partner which could reproduce it.

Comparing code with import client process we realize that in export client, FileWriter is being used instead of OutputStreamWriter (which is used in import client to force UTF-8 codification)

We modified line 98 of ExportClientProcess.java
final FileWriter fw = new FileWriter(exportFile);
by
OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(exportFile),"UTF-8");
to leave it similar to ImportClientProcess.java and verified that client_data.xml what correctly generated.

We attach modified ExportClientProcess.java
No tags attached.
? ExportClientProcess.java (5,093) 2010-06-09 17:50
https://issues.openbravo.com/file_download.php?file_id=2657&type=bug
Issue History
2010-06-09 17:50networkbNew Issue
2010-06-09 17:50networkbAssigned To => adrianromero
2010-06-09 17:50networkbFile Added: ExportClientProcess.java
2010-06-09 18:47adrianromeroStatusnew => scheduled
2010-06-09 18:47adrianromerofix_in_branch => pi
2010-07-06 10:27sivaramanAssigned Toadrianromero => sivaraman
2010-07-06 10:33hgbotCheckin
2010-07-06 10:33hgbotNote Added: 0029082
2010-07-06 10:33hgbotStatusscheduled => resolved
2010-07-06 10:33hgbotResolutionopen => fixed
2010-07-06 10:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9cab69ec3be5f17b499c45cafaf99f91ed449ecb [^]
2010-07-06 10:42sivaramanNote Added: 0029083
2010-07-07 12:38hudsonbotCheckin
2010-07-07 12:38hudsonbotNote Added: 0029115
2010-07-22 19:45sureshbabuNote Added: 0029485
2010-07-22 19:45sureshbabuStatusresolved => closed
2010-07-23 00:00anonymoussf_bug_id0 => 3033261

Notes
(0029082)
hgbot   
2010-07-06 10:33   
Repository: erp/devel/pi
Changeset: 9cab69ec3be5f17b499c45cafaf99f91ed449ecb
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Tue Jul 06 14:02:30 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9cab69ec3be5f17b499c45cafaf99f91ed449ecb [^]

Fixes issue 13594: Error exporting a client with umlaut characters

UTF-8 encoding is supported in exporting client process

---
M src/org/openbravo/service/db/ExportClientProcess.java
---
(0029083)
sivaraman   
2010-07-06 10:42   
Steps to test:

1. Log on to Openbravo with 'Openbravo Admin' role
2. Go to General Setup || Client || Client || Client
3. Change Name with any UTF-8 character
4. Go to General Setup || Client || Export Client
5. Verify UTF-8 characters in the exported file if they appear correctly
(0029115)
hudsonbot   
2010-07-07 12:38   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/9cab69ec3be5 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/d555a35070ee [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17817.obx [^]
(0029485)
sureshbabu   
2010-07-22 19:45   
verified