0

this relates to this question:

Custom URI scheme removes spaces before the "hashtag sign" (#)

I have a custom application, which i require to register to a protocol and open it via arguments.

i've implemented it using: https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

but the problem is that windows truncates some of my arguments (removes spaces in several occasions).

for example,

myScheme://first/second #third

turns into

myScheme://first/second#third

in my app.

i saw that it doesn't happen in "mailto" or "file" protocol handlers. i'm not sure what's the best way to address this issue then.

i need a simple sample of doing so, i tried doing an implementation using "pluggable protocol handler" but i'm not sure this is what i need, as it just opens internet explorer with my URL. mailto/file are using custom DLL that implements it, and thats what i aim for.

any help would be appreciated.

Community
  • 1
  • 1
ArielB
  • 1,184
  • 2
  • 11
  • 36
  • Sorry, it is unclear what you ask. I suggest that instead of writing _how you might_ do something you simply write _what it is_ you want to do. That would enable us to make suggestions. – arkascha Nov 09 '15 at 08:49
  • 1
    @arkascha i'll update my post – ArielB Nov 09 '15 at 08:49
  • Should space characters (' ') in URIs not be encoded as '%20', like it is done in URLs? – C. Rahn Feb 17 '18 at 22:04

0 Answers0