Skip to content

Commit

Permalink
encoding javascript source for unicode saftey. temp solution for issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutierrez committed Feb 27, 2012
1 parent adad432 commit c656432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compilers/googleclosurecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class GoogleClosureCall(BaseCall):
def exec_request(self):

data = urllib.urlencode({
'js_code': self.original,
'js_code': self.original.encode('utf-8'),
'compilation_level': self.level,
'output_info': "compiled_code" })

Expand Down
2 changes: 1 addition & 1 deletion compilers/uglifycall.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class UglifyCall(BaseCall):
def exec_request(self):

data = urllib.urlencode({
'js_code': self.original,
'js_code': self.original.encode('utf-8'),
'compilation_level': self.level,
'output_info': "compiled_code" })

Expand Down

0 comments on commit c656432

Please sign in to comment.