In the fragment identifier in a URL, should a space be encoded as %20 like in path or as + like in query string?
How to encode space in the fragment identifier in a URL
1.9k Views Asked by Desmond Hume At
1
There are 1 best solutions below
Related Questions in URL
- how to prepend www if the url string does not has www?
- Fetching URL vars into form and submitting to other page
- index.php url need to hide from homepage of php website
- Iframe not passing url parameters
- Object not found! The requested URL was not found on this server. PHP file not being accessed
- How can hide url value in php
- How parse makeHttpRequest with friendly url?
- Import .rda from URL into R
- Upload info that appear when share web link on Facebook
- Hiding param of struts.xml values in Struts 2
- PHP get public facing base directory from URL
- How to change URL form with GET method?
- how to get the URL from mainActivity to the second activity using intents?
- Using a dash in Struts 2 action name
- How do I load an HTTP URL with App Transport Security enabled in iOS 9?
Related Questions in SYNTAX
- Swift 2 - Pattern matching in "if"
- PHP designer 8 Syntax Highlighing
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- Chaining in rails (ERB) files
- How to automate a process by pulling elements from a data frame in R -looping with a string?
- invalid syntax non specific error
- Is there any method or macro to simulate syntax "if(a <= b < c <= ...)" to replace "if(a<=b && b < c && c <= ...)"?
- Is "long long" = "long long int" = "long int long" = "int long long"?
- Syntax error python 2.7
- Java: get all method parameters as Object array
- Objective-C syntax: <>
- C++ - Why does 2 local references to the same object stay in sync?
- How to jump/display the column of an error
- Javascript syntax highlighter infinite loop
- Syntax Error when using 'delete'
Related Questions in RFC
- HTTP Status Code Priority and Processing
- RFC 1071 - Calculating IP header checksum confusion in C
- How to parse CMS (RFC 5652)
- IETF, W3C, etc.: de iure or de facto standards?
- What does a URI look like that is not a name?
- Java - Sockets - display names of all files on server
- How does getaddrinfo work with a dualstack source?
- How to implement SEQUENCE as specified in an RFC
- What does "clock sequence" mean?
- ASN.1 definitions for basic SNMP exchanges
- php headers mail headers "554 Message not allowed - Headers are not RFC compliant[291]"
- Implementation of IDNs in JIDs as specified in RFC 6122
- Can HTTP headers contain colons in the field value?
- HTTP Header User-Agent Field Format Required?
- Split Text Documents Into Pages (in Vim?)
Related Questions in FRAGMENT-IDENTIFIER
- What are fragment URLs and why to use them?
- Triggering click on a link doesn't change location hash
- Hash retrieval from URL
- How to redirect to the absolute URL of a model instance while appending a hash?
- How to encode space in the fragment identifier in a URL
- How to match URL with fragment identifier in chrome extension?
- Conflict of displayDialogAsync and html5-history-api
- Are there any javascript libraries for working with hashbang/shebang (#!) urls?
- loading the same page with a different Fragment ID does not cause page to reload?
- How would I jump to a point in a page using the hash or pound symbol(#) with a get variable?
- Redirecting specific (but a lot of) URLs to include specific text
- Execute javascript based on # in target URL
- Fragment identifier (#) in Uri not working correctly
- How secure is it to use fragment identifiers to hold private data in URLs?
- How to pass special character via url in ASP.NET MVC?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For HTML pages, they should be percent-encoded.
According to RFC 2396, RFC 3986, and RFC 7320, the format of fragment identifiers depends on the media type. From RFC 2396 and RFC 3986:
From RFC 7320:
The HTML5 spec only specifies percent encoding:
(emphasis mine)
For XML documents, RFC 7303 specifies the syntax of the XPointer Framework which also requires percent encoding for reserved URI characters.
Other media types may have different rules.