Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode in antenna name causes bad stuff #10

Open
danielrichman opened this issue Nov 25, 2012 · 0 comments · Fixed by #11
Open

Unicode in antenna name causes bad stuff #10

danielrichman opened this issue Nov 25, 2012 · 0 comments · Fixed by #11

Comments

@danielrichman
Copy link
Member

500 internal server errors
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0834' in position 5: ordinal not in range(128)

due to unicode in someone's antenna

Current hotfix:

--- a/habitat_transition/app.py
+++ b/habitat_transition/app.py
@@ -168,7 +168,7 @@ def set_expires(response, diff):

     response.headers["Expires"] = expires

-HTML_DESCRIPTION = """
+HTML_DESCRIPTION = u"""
 <font size="-2"><BR>
 <B>Radio: </B>{radio_safe}<BR>
 <B>Antenna: </B>{antenna_safe}<BR>

Though it's worth noting that the unicode doesn't display correctly (or atleast, doesn't for me) on the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant