Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-99

NQuadsWriter should force ASCII in OutputStream constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.8.0
    • 2.0
    • core
    • None

    Description

      The NQuads specification states that all NQuads documents must be ASCII encoded. [1] The current NQuadsWriter(OutputStream) constructor does not enforce this when creating the OutputStreamWriter to wrap up the given outputstream. If it is not enforced, then the users locale will be used to create the OutputStreamWriter, which may not enforce US-ASCII.

      Patch is to replace the constructor with:

      this( new OutputStreamWriter(os, Charset.forName("US-ASCII")) );

      [1] http://sw.deri.org/2008/07/n-quads/#mediatype

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ansell Peter Ansell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: