From 35215984eb13fafab99eea0acfdd20feb6b92ba2 Mon Sep 17 00:00:00 2001 From: Le Phat Loc <34123125+lpl212757@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:54:02 +0700 Subject: [PATCH] MOD - Encoding as utf-8 to handle special chars MOD - Encoding as utf-8 to handle special chars --- shopify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shopify.py b/shopify.py index c35d397..be21e05 100644 --- a/shopify.py +++ b/shopify.py @@ -130,7 +130,7 @@ def get_image(variant_id): def extract_products(url, path, collections=None): - with open(path, 'w') as f: + with open(path, 'w', encoding='utf-8') as f: writer = csv.writer(f) writer.writerow(['Code', 'Collection', 'Category', 'Name', 'Variant Name',