Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0009307 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| backport | [Openbravo ERP] 01. General setup | major | always | 2009-06-02 18:26 | 2009-06-08 10:45 | |||
| Reporter | networkb | View Status | public | |||||
| Assigned To | alostale | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | 2.40MP5 | |||
| Status | closed | Fix in branch | 2.40 | Fixed in SCM revision | da95f0e3637f | |||
| Projection | none | ETA | none | Target Version | ||||
| OS | Windows | Database | PostgreSQL | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | 2.40MP3 | SCM revision | ||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | OBPS | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0009307: The xml files created when a language is exported are not generated with utf-8 enconding when using window | |||||||
| Description | The xml files created when a language is exported are not generated with utf-8 enconding when using window. This causes an error if you want to use this files in another process, for example with xml2po utility | |||||||
| Steps To Reproduce | -Go to general setup>Import/Export languages and export a language. -Use the xml files generated at /path/AppsOpenbravo/attachments/lang/folder_of_the_language in another process for example in the xml2po utility -If you use the files in the xml2po utility with the following order you get an error: ant runXML2PO -DinpFold=/pathAppsOpenbravo/attachments/lang/es_ES -DoutFold=/path/output -The error is the following: org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence. | |||||||
| Proposed Solution | Modify the src/org/openbravo/erpCommon/ad_forms/Translation.java file replacing the following line OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream (out)); with this other. OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream (out), "UTF8"); It is because you have to indicate that you want to use utf-8 encoding. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||
|
||||||||
Notes |
|
|
(0016952) hgbot (developer) 2009-06-04 15:32 |
Repository: erp/stable/2.40 Changeset: da95f0e3637f947069ee6083be18858093d4d163 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu Jun 04 15:27:36 2009 +0200 URL: http://code.openbravo.com/erp/stable/2.40/rev/da95f0e3637f947069ee6083be18858093d4d163 [^] fixed bug 0009307: The xml files created when a language is exported are not generated with utf-8 enconding when using window --- M src/org/openbravo/erpCommon/ad_forms/Translation.java --- |
|
(0017077) sureshbabu (viewer) 2009-06-08 10:45 |
Tested working fine |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-06-03 08:35 | rafaroda | Type | defect => backport |
| 2009-06-03 08:35 | rafaroda | fix_in_branch | => 2.40 |
| 2009-06-04 15:32 | hgbot | Checkin | |
| 2009-06-04 15:32 | hgbot | Note Added: 0016952 | |
| 2009-06-04 15:32 | hgbot | Status | scheduled => resolved |
| 2009-06-04 15:32 | hgbot | Resolution | open => fixed |
| 2009-06-04 15:32 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.40/rev/da95f0e3637f947069ee6083be18858093d4d163 [^] |
| 2009-06-08 10:45 | sureshbabu | Status | resolved => closed |
| 2009-06-08 10:45 | sureshbabu | Note Added: 0017077 | |
| 2009-06-08 10:45 | sureshbabu | Fixed in Version | => 2.40MP5 |
| Copyright © 2000 - 2009 MantisBT Group |