Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-54

ISO-8859-1 encoding not working correctly.

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • current (nightly)
    • None
    • JaxMe Core
    • None
    • Win2k, Sun JDK 1.4.2

    Description

      When specifying an XML encoding as follows:
      marshaller.setProperty(Marshaller.JAXB_ENCODING, "ISO-8859-1");
      I get an UnsupportedEncodingException because OutputStreamWriter uses the string "8859_1" to represent this encoding.

      But when I use it like this:
      marshaller.setProperty(Marshaller.JAXB_ENCODING, "8859_1");

      I get this in the XML:
      <?xml version='1.0' encoding='8859_1'?>

      but it should be:
      <?xml version='1.0' encoding='ISO-8859-1'?>
      otherwise the XML parser will not know what encoding it is.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pyropunk Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment