You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/07/21 15:03:25 UTC

[Bug 59889] New: Dashboard cannot display Japanese(and maybe also Chinese) characters.

https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

            Bug ID: 59889
           Summary: Dashboard cannot display Japanese(and maybe also
                    Chinese) characters.
           Product: JMeter
           Version: 3.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: kimono.outfit.am@gmail.com

Dashboard cannot display Japanese(and maybe also Chinese) characters.

This is because CHARSET is specified as "ISO8859-1" in CsvSampleReader.java.
It should be taken from SaveService.

CsvSampleReader.java
----
private static final String CHARSET = "ISO8859-1";
-> private static final String CHARSET = SaveService.getFileEncoding("UTF-8");

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #11 from Kimono <ki...@gmail.com> ---
Felix's patch solves the problem.
Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Felix Schumacher <fe...@internetallee.de> ---
Date: Thu Jul 28 17:36:07 2016
New Revision: 1754436

URL: http://svn.apache.org/viewvc?rev=1754436&view=rev
Log:
Change encoding to UTF-8 in reports for dashboard.

Bugzilla Id: 59889

Modified:
   
jmeter/trunk/src/core/org/apache/jmeter/report/core/AbstractSampleWriter.java
    jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hi,
Thanks for report.
could you provide a sample csv file that reproduces the issue ?
Also provide user.properties, jmeter.properties and jmeter.log

Thanks
Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #10 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
+1 for your patch Felix

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #6 from Kimono <ki...@gmail.com> ---
Created attachment 34066
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34066&action=edit
Problem and Expected

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #4 from Kimono <ki...@gmail.com> ---
Created attachment 34064
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34064&action=edit
user.properties(not modified from original)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #2 from Kimono <ki...@gmail.com> ---
Created attachment 34062
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34062&action=edit
jmeter.log

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #5 from Kimono <ki...@gmail.com> ---
Created attachment 34065
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34065&action=edit
result jtl file(UTF-8)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #8 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 34070
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34070&action=edit
Simple test plan to produce a csv file with japanese characters

The problem seems to be, that the csv (jtl) files are written using the
ResultCollector, which uses UTF-8 as default. Trouble is, that they are read
using CSVSampleReader (which defaults to ISO-8859-1).

When we change CSVSampleReader to UTF-8, we should consider changing
CSVSampleWriter to UTF-8, too.

CSVSampleWriter inherits from AbstractSampleWriter, which initialises its
writers with ISO-8859-1. Should we change AbstractSampleWriter, too? Or only
change CSVSampleWriter?

What do you think?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #3 from Kimono <ki...@gmail.com> ---
Created attachment 34063
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34063&action=edit
jmeter.properties(not modified from original)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #9 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 34071
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34071&action=edit
Change encoding to UTF-8 for CSV Files in the report package

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 59889] Dashboard cannot display Japanese(and maybe also Chinese) characters.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59889

--- Comment #7 from Kimono <ki...@gmail.com> ---
Thanks for your reply.

Additional image/pnf file is screen capture of expected result.

-- 
You are receiving this mail because:
You are the assignee for the bug.