Re: POST JSON vs. urlencoded

Joseph Myers <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Tue, 2 Apr 2019, Ralf Schlatterbeck wrote:

> At least in python2 roundup's database interface wants UTF-8 for all
> strings. Can someone chime in and tell me if this has changed with
> python3? I don't want to change this now and break py3 compatibility.

The general rule is as described in roundup/anypy/strings.py:

# Roundup represents text internally using the native Python str type.
# In Python 3, these are Unicode strings.  In Python 2, these are
# encoded using UTF-8, and the Python 2 unicode type is only used in a
# few places, generally for interacting with external modules
# requiring that type to be used.

-- 
Joseph S. Myers
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.