Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1822

UriEncoding support for special punctuation (was: only considers utf-8 but doesn't translate to utf-8)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 5.1.0
    • None
    • 0.5
    • Flagged
    • Platform 170

    Description

      org.hippoecm.repository.api.StringCodecFactory.UriEncoding#encode expects a utf-8 String. Internally Java Strings are not UTF-8 however.

      Consider the string

      ‘Someone’

      The quotes here are left and right single quotes. The left single quote will be 0x2018 in hex. But in UTF-8 it is 0xE2 0x80 0x98. The method makes no attempt to translate a character to or form utf-8 and is therefore not able to handle this character properly.

      This will most likely be an issue for all multi-byte utf-8 encoded characters, but I haven't tested that exhaustively.

      Attachments

        Activity

          People

            pulsarteam Pulsar Team
            jfloor Jasper Floor
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: