alphaKAI / twitter4d

The Simple Twitter API Wrapper Library For D Programming Language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use std.uri.encodeComponent instead of custom made urlEncode

WebFreak001 opened this issue · comments

Relying on phobos will help avoiding bugs

I see from a previous commit that you have used encodeComponent before. Is there any reason to not use it?

Sorry, I had some reason to not use, but I forgot details. Maybe encodeComponent has some problem (the function may not support the specification which required by twitter).

I checked the phobos documentation and it says its according to
RFC 3986, which is exactly what twitter/oauth requires (at the top it says RFC 3986)

Ok, I don't have any reason to use my implemented version.
If you submit the pull request which replace urlEncode with encodeComponent, I'll merge it.