Skip to content

What characters explicitly are percent-encoded? #194

@zamicol

Description

@zamicol

I wanted to clarify, what characters are exactly percent encoded for text fragments? The README suggests that only dash (-), ampersand (&), and comma (,) are escaped. Then the link in the README references a different set of characters: SPACE, ("), (<), (>), and (`)

Both sets, even when added, excludes common percent encoding characters from fragment percent encoding.

The standard percent-encoding character set would be a great option here.

 ':', '/', '?', '#', '[', ']', '@', '!', '$', '&', "'", '(', ')', '*', '+', ',', ';', '=', as well as '%' itself. 

https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions