Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-1822

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Similar issues:
    • Story Points:
      0.5
    • Flagged:
      Flagged
    • Processed by team:
      Platform
    • Sprint:
      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

            • Assignee:
              platformteam Platform Team
              Reporter:
              jfloor Jasper Floor
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: