[
https://issues.apache.org/jira/browse/LOGCXX-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045507#comment-16045507
]
Robert Middleton commented on LOGCXX-483:
-----------------------------------------
Upon further investigation, the exact cause of this has to do with how we get
back the encoding from APR.
In the {{CharsetDecoder}}, there is a call to {{apr_os_locale_encoding}}, which
will return on my system either ANSI_X3.4-1968 or UTF-8 depending on if
{{setlocale}} has been called or not. This will then cause a different
{{CharsetDecoder}} to be created that either attempts to decode the text as
ASCII or UTF-8.
I don't know enough about how translations work to know exactly _why_ the
{{CharsetDecoder}}/{{CharsetEncoder}} classes exist, although my suspicion is
that it is to put strings into the proper format for the system. Since the
Hebrew text can't be converted into ASCII, it replaces the entire string with
'?'.
> Not able to see hebrew values when logging in log4cxx
> -----------------------------------------------------
>
> Key: LOGCXX-483
> URL: https://issues.apache.org/jira/browse/LOGCXX-483
> Project: Log4cxx
> Issue Type: Bug
> Environment: Linux Debian 8 32bit
> Reporter: Giora Guttsait
>
> When logging messages with a console appender (whose output is directed to a
> file), hebrew text is shown as weird symbols.
> It really affects out ability to debug and analyze the program output at
> specific points, so a quick fix(if possible) would be great
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)