Skip to content

Commit 5a18ef0

Browse files
Merge pull request d3v-null#4 from Djiit/force-utf8-encoding
Force utf-8 encoding in API.__request()
2 parents 198f219 + 6458326 commit 5a18ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __request(self, method, endpoint, data):
6666
url = self.__get_oauth_url(url, method)
6767

6868
if data is not None:
69-
data = jsonencode(data, ensure_ascii=False)
69+
data = jsonencode(data, ensure_ascii=False).encode('utf-8')
7070

7171
return request(
7272
method=method,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy