指定文字列をURLエンコードするcle.py
ちょっとした汎用処理は律儀にcle.pyに入れにいっているsta.icon code:py
def encode_for_url(s):
import urllib.parse
encoded = urllib.parse.quote(s)
newstr = encoded
return newstr
どうさかくにん
あいうえお
あいうえお
あいうえおー
↓
%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A%0D%0A%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A%0D%0A%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A%E3%83%BC
code:prefix
code:all
ok
https://gyazo.com/5d41fd6cb25949fc2c8d97f2186b1bba