login about faq

Hello,

I am sending post request, in one parameter I have value with minus, like count=-2000.

Firefox send this parameter without encoding, Chilkat encode minus to %2D. Why? If I am making urlencode of the value -2000, I am getting -2000, not %2D2000.

Thank you.

asked Oct 07 '12 at 11:12

ozheek's gravatar image

ozheek
1334


It shouldn't actually cause a problem -- the %2D is equivalent to "-".

(From http://en.wikipedia.org/wiki/Percent-encoding)

Characters from the unreserved set never need to be percent-encoded.

URIs that differ only by whether an unreserved character is percent-encoded or appears literally are equivalent by definition, but URI processors, in practice, may not always recognize this equivalence. For example, URI consumers shouldn't treat "%41" differently from "A" or "%7E" differently from "~", but some do. For maximum interoperability, URI producers are discouraged from percent-encoding unreserved characters.

However, it would be better if Chilkat URL encoded according to RFC 3986, which was introduced in January 2005. I updated the Chilkat implementation so that the default URL encoding will be according to RFC3986. This will be the behavior in the next official release, as well as all future releases. If you need a pre-release, please let me know what operating system, programming language, platform, etc. so that I know the exact build you require.

link

answered Oct 08 '12 at 10:27

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Hello,

I use .net framework 4.0. If you can, please make both versions: 32 and 64-bit.

link

answered Oct 08 '12 at 17:17

ozheek's gravatar image

ozheek
1334

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×98

Asked: Oct 07 '12 at 11:12

Seen: 1,771 times

Last updated: Oct 08 '12 at 17:17

powered by OSQA