Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1502 - support Chinese character #1582

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

DamaoShao
Copy link

Problem: SDK does not support Chinese character

Solution: when Requests library sending requests, The keyword parameter
json is the syntax sugar of the keyword parameter data.
when use keyword parameter json, json.dumps parameter ensure_ascii is
True, so problems arise when parameters contain non-ASCII codes.
Therefore, use the data keyword instead of the json keyword.

Files Changed:

  • f5/bigip/resource.py
  • f5/bigip/shared/authn.py
  • f5/bigip/tm/gtm/pool.py
  • f5/bigip/tm/gtm/topology.py
  • f5/bigip/tm/ltm/policy.py
  • f5/bigip/tm/ltm/virtual.py
  • f5/bigiq/cm/device/licensing/pool/regkey.py
  • f5/bigiq/cm/device/licensing/pool/utility.py
  • f5/bigiq/cm/shared/licensing/pools.py

Problem: SDK does not support Chinese character

Solution: when Requests library sending requests, The keyword parameter
json is the syntax sugar of the keyword parameter data.
when use keyword parameter json, json.dumps parameter ensure_ascii is
True, so problems arise when parameters contain non-ASCII codes.
Therefore, use the data keyword instead of the json keyword.

Files Changed:
 + f5/bigip/resource.py
 + f5/bigip/shared/authn.py
 + f5/bigip/tm/gtm/pool.py
 + f5/bigip/tm/gtm/topology.py
 + f5/bigip/tm/ltm/policy.py
 + f5/bigip/tm/ltm/virtual.py
 + f5/bigiq/cm/device/licensing/pool/regkey.py
 + f5/bigiq/cm/device/licensing/pool/utility.py
 + f5/bigiq/cm/shared/licensing/pools.py
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.

None yet

1 participant