urlencoding in Dart

后端 未结 5 2090
鱼传尺愫
鱼传尺愫 2020-12-01 13:31

Is there a function to do urlencoding in Dart? I am doing a AJAX call using XMLHttpRequest object and I need the url to be url encoded.

I did a search on dartlang.or

5条回答
  •  攒了一身酷
    2020-12-01 14:32

    I dont' think there is yet. Check out http://unpythonic.blogspot.com/2011/11/oauth20-and-jsonp-with-dartin-web.html and the encodeComponent method.

    Note, it's lacking some characters too, it needs to be expanded. Dart really should have this built in and easy to get to. It may have it in fact, but I didn't find it.

提交回复
热议问题