Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007222Openbravo ERP00. Application dictionarypublic2009-01-26 18:422009-03-05 10:28
networkb 
iperdomo 
immediateminoralways
closedfixed 
5
2.40 
2.40MP3 
Core
No
0007222: The first time a report with special characteres is compiled, translation fails
If a static field in a report contains special characters, like ñ,ó,á...and is compiled (ant compile.development -Dtab=xx), the translation fails.
If you want to see the report, special character will be showed uncorrectly.
If you compile again the application (using the same sentence), translation is done properly but the problem persists.
1. Modify a report (for example RptC_OrderPO_Lines.jrxml). Add a static text like Descripción.
2. Compile it with iReports.
3. Copy the .jasper generated into erpReports folder.
4. Compile the application using: ant compile.development -Dtab=xx
5. Warning appears like this one: compile.translate:
     [java] 0 [main] WARN org.openbravo.translate.Translate - Couldn't translate: Descripci├│n.Result translated: Descripci├│n.Actual file: /org/openbravo/erpReports/RptC_OrderPO_Lines.jrxml

6. Restart Tomcat and go to Purchase Order.
7. Press "Printer" button.
8. The report shows an uncorrectly character (see the attached file)
No tags attached.
blocks defect 0007142 closed iperdomo The first time a report with special characteres is compiled, translation fails 
Issue History
2009-01-29 13:01iperdomoTypedefect => backport
2009-01-29 13:01iperdomofix_in_branch => 2.40
2009-01-29 13:04svnbotCheckin
2009-01-29 13:04svnbotNote Added: 0012812
2009-01-29 13:04svnbotStatusscheduled => resolved
2009-01-29 13:04svnbotResolutionopen => fixed
2009-01-29 13:04svnbotsvn_revision => 12467
2009-03-03 17:32psarobeFixed in Version => 2.40MP3
2009-03-05 10:28psarobeStatusresolved => closed

Notes
(0012812)
svnbot   
2009-01-29 13:04   
Repository: openbravo
Revision: 12467
Author: iperdomo
Date: 2009-01-29 13:04:41 +0100 (Thu, 29 Jan 2009)

Fixes issue 7222: Force file reading in utf-8

---
U branches/r2.40/src-trl/src/org/openbravo/translate/Translate.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12467&sc=1 [^]