-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: encode submission xml as utf-8 to avoid default latin-1
- strings passed in to request(data=some_str) get encoded as latin-1 by default. Data passed in as dictionaries to `json` or `params` are encoded to utf-8 by default. So encode the XML. - forms.py: tidy up docstring wrap length to 90 chars - submissions.py: - add encoding parameter, default utf-8, for encoding the XML, for submission.create and submission.edit - move example submission edit XML from private ._put method to public .edit method so users can see it. - test_client.py: add integration tests for non-ascii form_ids and instance_ids, incl. check for retrieval after create/update.
- Loading branch information
1 parent
c0cc71a
commit ffc4ae7
Showing
5 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters