Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-355

HTMLLayout encoding / charset support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.0
    • None
    • Layout
    • None
    • All

    Description

      HTMLLayout does not write a meta tag in the html header to identify the encoding / charset used by file appender. I've created a quick fix to support UTF-8, by adding the following to HTMLLayout::appendHeader:

      output.append(LOG4CXX_STR("<meta http-equiv='Content-Type' content='text/html; charset=utf8' />"));

      What needs to be done is to support a charset / encoding option for HTMLLayout or to set it according to the appender encoding option.

      Ronen

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            ronenb Ronen Babayoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: