[ https://issues.apache.org/jira/browse/LOGCXX-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412047#comment-15412047 ]
Thorsten Schöning commented on LOGCXX-483: ------------------------------------------ {CODE} 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). {CODE} I guess the same and for what the function is doing, you need to check it's source. I don't know how it works. {CODE} 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? {CODE} This sounds like your environment is correct, but doesn't guarantee that the hebrew chars are forwarded to log4cxx like in your example. You can make sure by hard coding some log statements like in your cout example and see how they result in your file. If that provides wrong content, it's most likely that the string is wrongly encoded in log4cxx before output. But as I said before, you need to know which charset LocaleCharsetencoder assumes, else you are only guessing around in the dark. Maybe looking at apr_os_locale_encoding provides you more details if you don't want/are able to debug at runtime. I think debugging would make this much easier. {CODE} [...]but is there something we can do (as of, minor changes) in the code, to allow hebrew encoding(iso-8859-8)? {CODE} Not unless you are absolutely sure what the error is. I have no idea, I can only provide some hints, but in the end you need to find it. Building log4cxx suing autotolls from source shouldn't be that hard, give it a try and then you can use LOG4CXX_CHARSET_UTF for example. > 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)