[
https://issues.apache.org/jira/browse/LOGCXX-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412020#comment-15412020
]
Giora Guttsait commented on LOGCXX-483:
---------------------------------------
1) The console appender output is automatically redirected to a file, we've got
our watchdog process do that for us.
2) The hebrew that I try to see is simply hebrew written in an Eclipse window,
nothing out of the ordinary.
3) We tried UTF-8 with setEncoding and that didn't help. We thought US-ASCII
would help because it would simply throw the characters the way they are, but
as you explained, that behavior is prevented by the CharsetEncoder (or the
Transcoder, I don't remember who uses who in the encode method).
4) We seem to be under the impression that the CharsetEncoder that we receive
is a LocaleCharsetEncoder, which uses apr_os_locale_encoding (or some method of
that sort), and we didn't really understand where it gets it from).
5) If I do a simple cout << "+hebrew characters+" << endl, the hebrew is
printed (though I don't remember if the direction is right, but that's ok for
us to get it in the incorrect direction). Does that help anyhow with
understanding what can be done to allow it to print?
We hope that we don't have to rebuild the code, because then we have to save it
into our sources and it's not something we'd really like to do, but is there
something we can do (as of, minor changes) in the code, to allow hebrew
encoding(iso-8859-8)?
One thing we tried to do is copy the content of
log4cxx/private/log4cxx_private.h into our wrapper class where we include
log4cxx, and set the defines ourselves (which was just to set #define
LOG4CXX_CHARSET_UTF to 1 instead of 0), as we hoped it would cause '#if
LOG4CXX_CHARSET_UTF8 && LOG4CXX_LOGCHAR_IS_UTF8' to be true, and it would do
the simple method, but it still showed us question marks
> 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.4#6332)