Advertisement
Guest User

Untitled

a guest
Oct 10th, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Index: trunk/pymon/monast.py
  2. ===================================================================
  3. --- trunk/pymon/monast.py (revision 536)
  4. +++ trunk/pymon/monast.py (working copy)
  5. @@ -1,5 +1,5 @@
  6. #!/usr/bin/python -u
  7. -# -*- coding: iso8859-1 -*-
  8. +# -*- coding: utf-8 -*-
  9. ##
  10. ## Imports
  11. ##
  12. @@ -395,7 +395,7 @@
  13. call.seconds = int(time.time() - call.starttime)
  14. tmp[servername]['queueCalls'].append(call.__dict__)
  15.  
  16. - request.write(json.dumps(tmp, encoding = "ISO8859-1"))
  17. + request.write(json.dumps(tmp))
  18. request.finish()
  19.  
  20. def getUpdates(self, request):
  21. @@ -406,7 +406,7 @@
  22. updates = [u for u in session.updates if u.get('servername') == servername]
  23. session.updates = []
  24. if len(updates) > 0:
  25. - request.write(json.dumps(updates, encoding = "ISO8859-1"))
  26. + request.write(json.dumps(updates))
  27. else:
  28. request.write("NO UPDATES")
  29. request.finish()
  30. @@ -417,7 +417,7 @@
  31. if self.monast.authRequired and session.isAuthenticated and session.username:
  32. servers = self.monast.authUsers[session.username].servers.keys()
  33. servers.sort()
  34. - request.write(json.dumps(servers, encoding = "ISO8859-1"))
  35. + request.write(json.dumps(servers))
  36. request.finish()
  37.  
  38. def doAction(self, request):
  39. Index: trunk/template/index.html
  40. ===================================================================
  41. --- trunk/template/index.html (revision 536)
  42. +++ trunk/template/index.html (working copy)
  43. @@ -32,7 +32,7 @@
  44. */
  45. -->
  46.  
  47. -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  48. +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  49. <title>MonAst: The Asterisk Monitor Web Panel</title>
  50.  
  51. <!-- Individual YUI CSS files -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement