colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

https://github.com/colinta/SublimeStringEncode/issues/19 #20

Closed gzzz closed 9 years ago

gzzz commented 9 years ago

Error 'module' object has no attribute 'parse' fixed.

Unicode support for URL Encode / Decode added.

colinta commented 9 years ago

Cool, thanks!

colinta commented 9 years ago

Oh wait, you're using ST2. Useful to know... one sec, because these changes break ST3.

gzzz commented 9 years ago

Oh wait, you're using ST2.

Yes. Plugin installed from Package Control.

Useful to know... one sec, because these changes break ST3.

Oh. Now see comment about ST2 in Readme… Sorry for misunderstanding.

colinta commented 9 years ago

Pushing 2.0.10, which supports ST2 and ST3. What are you doing on ST2? It feels so ancient. I'm surprised when I hear people still using it.

try:
    import urllib.parse
    quote_plus = urllib.parse.quote_plus
    unquote_plus = urllib.parse.unquote_plus
except ImportError:
    import urllib
    quote_plus = urllib.quote_plus
    unquote_plus = urllib.unquote_plus

See also 79324af

colinta commented 9 years ago

No worries! And that README is out of date, since this module works for both apparently :smiley:

gzzz commented 9 years ago

Pushing 2.0.10, which supports ST2 and ST3.

Great!

What are you doing on ST2? It feels so ancient.

Well, it is still beta.