Skip to content

Issue #1502 - support Chinese character#1582

Open
DamaoShao wants to merge 1 commit intoF5Networks:developmentfrom
DamaoShao:development
Open

Issue #1502 - support Chinese character#1582
DamaoShao wants to merge 1 commit intoF5Networks:developmentfrom
DamaoShao:development

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.

1 participant