log4j encoding

Hi,

I am using log4j to log messages into a log file.

the problem rises when i need to log japanese strings into the file

the string is saved as sequence of '?'.

I need to save the Strings as a UTF-8 encoded Strings.

I am using a Log object , and invoke the info(String message) to send the message String.

i tired to change the encoding parameter value in the log4j.properties file to UTF-8. but it didn't work.

can anyone please help me?

Thanks,

Eitan.

[518 byte] By [eitan_dorona] at [2007-10-3 5:27:54]
# 1
That would depend on the appender you are using. You didn't tell us anything about that. And what's this "encoding parameter value" you mentioned?
DrClapa at 2007-7-14 23:35:15 > top of Java-index,Desktop,I18N...
# 2
Might be a bit late...You can set the encoding for an appender:log4j.appender.MyAppender.Encoding=UTF-8
Tajallya at 2007-7-14 23:35:15 > top of Java-index,Desktop,I18N...