-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make default lowercase everywhere #16
Comments
The Crockford spec says "When encoding, only upper case letters are used." so I wouldn't expect this to be the default behaviour. |
It also says:
Which I read as "pick whatever style you prefer". His is upper-case, mine is lower-case. |
He also says that it should "be human readable". |
The spec is very clear that you should:
When decoding, the library already calls |
You can not have a spec where any casing can be decoded, but then request that it is encoded in a certain way. Either you allow any casing or you don't. Therefore I'm considering it a personal preference of him. One I don't agree on that is. |
You're absolutely welcome to disagree and have whatever personal preference you like but if you want to diverge from the spec in the implementation, I would suggest you should either:
FWIW, this is not unusual. In something as ubiquitous as the URI syntax spec (RFC 3986), the section on % encoding says (emphasis mine):
|
https://endtimes.dev/why-lowercase-letters-save-data/
The text was updated successfully, but these errors were encountered: