Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0007142 | Openbravo ERP | 00. Application dictionary | public | 2009-01-26 18:42 | 2009-04-21 11:04 |
|
Reporter | networkb | |
Assigned To | iperdomo | |
Priority | immediate | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.40 | |
Target Version | | Fixed in Version | | |
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) |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0007222 | | closed | iperdomo | The first time a report with special characteres is compiled, translation fails |
|
Attached Files | RptC_OrderPO.jrxml-5.pdf (6,673) 2009-01-26 18:42 https://issues.openbravo.com/file_download.php?file_id=735&type=bug
RptC_OrderPO.jrxml.pdf (6,845) 2009-01-26 19:33 https://issues.openbravo.com/file_download.php?file_id=736&type=bug
compile.log (10,725) 2009-01-26 19:33 https://issues.openbravo.com/file_download.php?file_id=737&type=bug
ireport-encoding-win32.png (486,547) 2009-01-27 10:31 https://issues.openbravo.com/file_download.php?file_id=739&type=bug |
|
Issue History |
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 |
Notes |
|
|
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. |
|
|
|
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 |
|
|
|
|
|
|
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 ~]$ |
|
|
|
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 |
|
|
|
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 |
|
|
|
The encoding problem on Windows is a 'terminal' problem. Changing the preferences of PuTTy to UTF-8, you can see the correct characters. |
|
|
|
I was not able to reproduce the error.
Best Regards,
Iván |
|
|
(0012817)
|
svnbot
|
2009-01-29 13:43
|
|
|