Home Download Buy Blog Forum Support

URI encode ?

URI encode ?

Postby jkeks on Thu Sep 15, 2011 11:19 am

is there plugin or hacks to URI encoding ?

from: бесплатные to %E1%E5%F1%EF%EB%E0%F2%ED%FB%E5
my blog: http://jkeks.ru , and my minishop with more than 400k+ goods: http://citymobi.ru
jkeks
 
Posts: 5
Joined: Wed Sep 14, 2011 4:43 pm

Re: URI encode ?

Postby wuub on Thu Sep 15, 2011 6:40 pm

http://bitbucket.org/wuub/miscst2plugins

Code: Select all
# encoding: utf-8
import sublime_plugin
class UrlQuoteSelection(sublime_plugin.TextCommand):
    def run(self, edit):
        from urllib import quote_plus
        for selection in reversed(self.view.sel()):
            self.view.replace(edit, selection, quote_plus(self.view.substr(selection).encode("utf-8")))

Last edited by wuub on Fri Sep 16, 2011 9:26 am, edited 2 times in total.
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: URI encode ?

Postby iamntz on Thu Sep 15, 2011 7:06 pm

There is a snippet for base64_encode/decode? :mrgreen:
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: URI encode ?

Postby jkeks on Sat Sep 17, 2011 3:03 am

ghmm
how to hard ;(
my blog: http://jkeks.ru , and my minishop with more than 400k+ goods: http://citymobi.ru
jkeks
 
Posts: 5
Joined: Wed Sep 14, 2011 4:43 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 28 guests