socrata / SlackPoll

Add a basic voting or polling integration to slack channels
0 stars 1 forks source link

Unicode characters are escaped in requests from Slack #15

Open michaelb990 opened 8 years ago

michaelb990 commented 8 years ago

This causes an error when printing logs: line 22 in slack-poll.py

courtneyspurgeon commented 8 years ago

Is this also what causes a 500 error when questions contain apostrophes, or is that a new issue?

Repro: /poll create What’s up? options Yes | No

michaelb990 commented 8 years ago

Yep, I'm pretty sure that's why. It was getting escaped to: /poll create What\u344s up? options Yes | No Or whatever the unicode code is for the apostrophe. Should be a pretty easy fix.

On Fri, Nov 20, 2015 at 12:34 PM, courtneyspurgeon <notifications@github.com

wrote:

Is this also what causes a 500 error when questions contain apostrophes, or is that a new issue?

Repro: /poll create What’s up? options Yes | No

— Reply to this email directly or view it on GitHub https://github.com/socrata/SlackPoll/issues/15#issuecomment-158517049.