Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0007142 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 00. Application dictionary | minor | always | 2009-01-26 18:42 | 2009-04-21 11:04 | |||
Reporter | networkb | View Status | public | |||||
Assigned To | iperdomo | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 12473 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.40 | 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 | 0007142: The first time a report with special characteres is compiled, translation fails | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() ![]() ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0012654) iperdomo (viewer) 2009-01-26 19:36 |
I followed the steps and I couldn't reproduce the issue. Attached you'll find the compilation log (compile.log) after adding "Descripción" and "áéíóúñÑü" to the subreport. You'll see that the translation process was done correctly. Also attached you'll find the file RptC_OrderPO.jrxml.pdf, that is the one generated from the application after the change. |
(0012655) iperdomo (viewer) 2009-01-26 19:46 |
Can you please check that the character encoding is set to UTF-8. - Open the RptC_OrderPO_Lines.jrxml with iReport - Go to: Edit > Report properties - Click on the i18n tab - XML encoding should be: UTF-8 |
(0012660) networkb (viewer) 2009-01-27 08:58 |
Encoding is correct |
(0012668) iperdomo (viewer) 2009-01-27 10:08 |
I could reproduce it using a Windows machine, modifying the template using iReport 2.0.4, and transferring the modified template using pscp [1] [1] http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html [^] --------- translate: compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. [java] 18311 [main] WARN org.openbravo.translate.Translate - Couldn't translate: áéÃóúñÃü.Result translated: áéÃóúñÃü.Actual file: /org/openbravo/erpReports/RptC_OrderPO_Lines.jrxml [java] 18326 [main] WARN org.openbravo.translate.Translate - Couldn't translate: Descripción.Result translated: Descripción.Actual file: /org/openbravo/erpReports/RptC_OrderPO_Lines.jrxml compile: BUILD SUCCESSFUL Total time: 4 minutes 5 seconds [openbravo@localhost ~]$ |
(0012669) iperdomo (viewer) 2009-01-27 10:09 |
I couldn't reproduce the error using a iReport version 2.0.4 on a linux machine and transferring the modified template using scp --------- compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. compile.translate: [java] 0 [main] WARN org.openbravo.translate.Translate - No system languages defined, translation will parse all files. [java] 18364 [main] WARN org.openbravo.translate.Translate - Couldn't translate: áéíóúñÑü.Result translated: áéíóúñÑü.Actual file: /org/openbravo/erpReports/RptC_OrderPO_Lines.jrxml [java] 18378 [main] WARN org.openbravo.translate.Translate - Couldn't translate: Descripción.Result translated: Descripción.Actual file: /org/openbravo/erpReports/RptC_OrderPO_Lines.jrxml compile: BUILD SUCCESSFUL Total time: 3 minutes 9 seconds |
(0012672) iperdomo (viewer) 2009-01-27 10:38 |
Added a file: ireport-encoding-win32.png You can see the jrxml template has Spanish symbols. If you check the jrxml template with a text editor like wordpad or notepad, you'll see all the symbols messed up. It seems an encoding problem with iReport |
(0012681) iperdomo (viewer) 2009-01-27 12:52 |
The encoding problem on Windows is a 'terminal' problem. Changing the preferences of PuTTy to UTF-8, you can see the correct characters. |
(0012686) iperdomo (viewer) 2009-01-27 13:42 |
I was not able to reproduce the error. Best Regards, Iván |
(0012817) svnbot (viewer) 2009-01-29 13:43 |
Repository: openbravo Revision: 12473 Author: iperdomo Date: 2009-01-29 13:43:37 +0100 (Thu, 29 Jan 2009) Fixes issue 7142: Force file reading in utf-8 --- U trunk/src-trl/src/org/openbravo/translate/Translate.java --- https://dev.openbravo.com/websvn/openbravo/?rev=12473&sc=1 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2009-01-26 18:42 | networkb | New Issue | |
2009-01-26 18:42 | networkb | Assigned To | => rafaroda |
2009-01-26 18:42 | networkb | sf_bug_id | 0 => 2538167 |
2009-01-26 18:42 | networkb | File Added: RptC_OrderPO.jrxml-5.pdf | |
2009-01-26 18:42 | networkb | OBNetwork customer | => Yes |
2009-01-26 18:42 | networkb | Regression testing | => No |
2009-01-26 18:58 | networkb | Description Updated | |
2009-01-26 19:13 | rafaroda | Assigned To | rafaroda => iperdomo |
2009-01-26 19:33 | iperdomo | File Added: RptC_OrderPO.jrxml.pdf | |
2009-01-26 19:33 | iperdomo | File Added: compile.log | |
2009-01-26 19:36 | iperdomo | Note Added: 0012654 | |
2009-01-26 19:36 | iperdomo | Status | new => feedback |
2009-01-26 19:46 | iperdomo | Note Added: 0012655 | |
2009-01-27 08:58 | networkb | Note Added: 0012660 | |
2009-01-27 08:59 | networkb | Status | feedback => new |
2009-01-27 10:08 | iperdomo | Note Added: 0012668 | |
2009-01-27 10:09 | iperdomo | Note Added: 0012669 | |
2009-01-27 10:31 | iperdomo | File Added: ireport-encoding-win32.png | |
2009-01-27 10:38 | iperdomo | Note Added: 0012672 | |
2009-01-27 12:52 | iperdomo | Note Added: 0012681 | |
2009-01-27 13:42 | iperdomo | Note Added: 0012686 | |
2009-01-27 13:42 | iperdomo | Status | new => feedback |
2009-01-29 13:01 | iperdomo | Status | feedback => scheduled |
2009-01-29 13:01 | iperdomo | fix_in_branch | => trunk |
2009-01-29 13:43 | svnbot | Checkin | |
2009-01-29 13:43 | svnbot | Note Added: 0012817 | |
2009-01-29 13:43 | svnbot | Status | scheduled => resolved |
2009-01-29 13:43 | svnbot | Resolution | open => fixed |
2009-01-29 13:43 | svnbot | svn_revision | => 12473 |
2009-04-21 11:04 | psarobe | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |