I was trying to use YQL from Dart and found that there is no way you can do URLEncoding using Dart.
I searched the dart:html, dart:uri and dart:io packages and found that none of them have the method to do URLEncoding.
I then posted about it in stackoverflow and then later found that, right now the only way to do URLEncoding is to emulate the encodeURL() function of JavaScript. Someone from Google has already done it. I just copied the file and placed inside my Dart project and then used the following line in my dart file.
#import("EncodeDecode.dart");
Although it works right now, I would really like to see this as part of the dart:uri package. Let’s see if someone from the Dart team is listening to this.
Thanks for pointing this out, please file a feature request at http://dartbug.com/new Enjoy the hackathon!