Skip to content

Commit

Permalink
Merge pull request #71 from XLSForm/encode-question-name
Browse files Browse the repository at this point in the history
#68 encode question_name
  • Loading branch information
dorey authored Aug 11, 2016
2 parents f91d864 + b1db205 commit a8e2711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxform/xls2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def workbook_to_json(
question_name = unicode(row[constants.NAME])
if not is_valid_xml_tag(question_name):
error_message = rowFormatString % row_number
error_message += " Invalid question name [" + question_name + "]"
error_message += " Invalid question name [" + question_name.encode('utf-8') + "] "
error_message += "Names must begin with a letter, colon,"\
+ " or underscore."
error_message += "Subsequent characters can include numbers,"\
Expand Down

0 comments on commit a8e2711

Please sign in to comment.