I would like to log data to a file in 2 byte languages (chinese, japanese etc) using log4net.
How to properly configure log4net to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The log file encoding is specified by FileAppender.Encoding. It can be configured using the
encodingconfiguration element. Example:The value is the code page name. The corresponding Encoding is obtained using the
System.Text.Encoding.GetEncoding(string)method. For a list of code pages, see the Encoding class documentation.