fix .cs/.fs unicode handling
This commit is contained in:
parent
81ca14fcf0
commit
9c43856c87
|
@ -11,6 +11,7 @@ from util import hook
|
||||||
def dotnetpad(lang, code):
|
def dotnetpad(lang, code):
|
||||||
"Posts a provided snippet of code in a provided langugage to dotnetpad.net"
|
"Posts a provided snippet of code in a provided langugage to dotnetpad.net"
|
||||||
|
|
||||||
|
code = code.encode('utf8')
|
||||||
params = urllib.urlencode({'language': lang, 'code': code})
|
params = urllib.urlencode({'language': lang, 'code': code})
|
||||||
|
|
||||||
headers = {"Content-type": "application/x-www-form-urlencoded",
|
headers = {"Content-type": "application/x-www-form-urlencoded",
|
||||||
|
|
Loading…
Reference in New Issue