Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: trunk/pymon/monast.py
- ===================================================================
- --- trunk/pymon/monast.py (revision 536)
- +++ trunk/pymon/monast.py (working copy)
- @@ -1,5 +1,5 @@
- #!/usr/bin/python -u
- -# -*- coding: iso8859-1 -*-
- +# -*- coding: utf-8 -*-
- ##
- ## Imports
- ##
- @@ -395,7 +395,7 @@
- call.seconds = int(time.time() - call.starttime)
- tmp[servername]['queueCalls'].append(call.__dict__)
- - request.write(json.dumps(tmp, encoding = "ISO8859-1"))
- + request.write(json.dumps(tmp))
- request.finish()
- def getUpdates(self, request):
- @@ -406,7 +406,7 @@
- updates = [u for u in session.updates if u.get('servername') == servername]
- session.updates = []
- if len(updates) > 0:
- - request.write(json.dumps(updates, encoding = "ISO8859-1"))
- + request.write(json.dumps(updates))
- else:
- request.write("NO UPDATES")
- request.finish()
- @@ -417,7 +417,7 @@
- if self.monast.authRequired and session.isAuthenticated and session.username:
- servers = self.monast.authUsers[session.username].servers.keys()
- servers.sort()
- - request.write(json.dumps(servers, encoding = "ISO8859-1"))
- + request.write(json.dumps(servers))
- request.finish()
- def doAction(self, request):
- Index: trunk/template/index.html
- ===================================================================
- --- trunk/template/index.html (revision 536)
- +++ trunk/template/index.html (working copy)
- @@ -32,7 +32,7 @@
- */
- -->
- -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>MonAst: The Asterisk Monitor Web Panel</title>
- <!-- Individual YUI CSS files -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement