Skip to content

Commit

Permalink
When using pipes assume input is utf8 rather than assuming ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Apr 24, 2014
1 parent ae75234 commit 3f3f877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wptserve/pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def index(scanner, token):
try:
token = int(token)
except:
token = unicode(token)
token = unicode(token, "utf8")
return ("index", token)

def tokenize(self, string):
Expand Down

0 comments on commit 3f3f877

Please # to comment.