logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-518) Logging of nested list uses incorrect charset
Date Mon, 27 Jan 2014 17:25:42 GMT
Brian created LOG4J2-518:

             Summary: Logging of nested list uses incorrect charset
                 Key: LOG4J2-518
                 URL: https://issues.apache.org/jira/browse/LOG4J2-518
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders, Layouts
    Affects Versions: 2.0-beta9
         Environment: Windows 7
            Reporter: Brian
            Priority: Minor

When I log a list that contains UTF-8 (japanese characters) it works fine and displays correctly
in the console.  However, when this list is nested in another list, it displays boxes with
question marks.  When I copy and paste these characters elsewhere they display correctly.

   LOG.info("Data columns: ");

   INFO c.m.s.r.t.f.d.ListDataLoaderTest [main] [[phrase, phrase, phrase, phrase, phrase ??????,
phrase, ??????????, ...

(where "?" are surrounded by boxes in my actual console output)
   LOG.info("Phrases: ");

   [phrase, phrase, phrase, phrase, phrase モーター制御, phrase, ポップアップメニュー,

(i.e., the correct Japanese).

Appender used:
   <Console name="Console" target="SYSTEM_OUT">
         <pattern>%p %C{1.} [%t] %m%n</pattern>

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message