Skip to content

Conversation

@AaronDDM
Copy link
Contributor

@AaronDDM AaronDDM commented Dec 9, 2025

Description

  • Set ensure_ascii=False in json.dumps() to preserve ASCII characters as-is
  • Non-ASCII characters are preserved as UTF-8 in JSON payloads
  • Updated tests to verify ASCII characters remain unescaped
  • Added send_email_demo example demonstrating special character handling

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

- Set ensure_ascii=False in json.dumps() to preserve ASCII characters as-is
- Non-ASCII characters are preserved as UTF-8 in JSON payloads
- Updated tests to verify ASCII characters remain unescaped
- Added send_email_demo example demonstrating special character handling
- Removed test_build_form_request_with_special_characters which expected
  non-ASCII characters to be preserved as UTF-8
- The code uses default ensure_ascii=True behavior where non-ASCII
  characters are escaped as unicode sequences
- All remaining tests pass
@AaronDDM AaronDDM merged commit e5d6e07 into main Dec 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants