Skip to content

Commit

Permalink
Merge pull request #21 from w3c/jgraham/sub_encoding
Browse files Browse the repository at this point in the history
When using pipes assume input is utf8 rather than assuming ascii
  • Loading branch information
sideshowbarker committed Apr 24, 2014
2 parents ae75234 + 3f3f877 commit 7e74997
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 7e74997

Please # to comment.