diff --git a/src/invoice_generator/html_generator.py b/src/invoice_generator/html_generator.py
index 7f15a65..b9f37c5 100644
--- a/src/invoice_generator/html_generator.py
+++ b/src/invoice_generator/html_generator.py
@@ -62,7 +62,9 @@ class HtmlTemplate:
# convert HTML to PDF
pisa_status = pisa.CreatePDF(
source_html, # the HTML to convert
- dest=result_file) # file handle to recieve result
+ path='test_data/templates/fonts',
+ dest=result_file
+ ) # file handle to recieve result
# close output file
result_file.close() # close output file
diff --git a/src/main.py b/src/main.py
index e0a8d2a..cf5f6c0 100644
--- a/src/main.py
+++ b/src/main.py
@@ -15,7 +15,7 @@ class DataObject:
def parse_yaml_file(file_path):
- with open(file_path, 'r') as file:
+ with open(file_path, 'r', encoding='utf-8') as file:
return yaml.safe_load(file)
diff --git a/test_data/templates/invoice.html b/test_data/templates/invoice.html
index f5a91ba..3330a05 100644
--- a/test_data/templates/invoice.html
+++ b/test_data/templates/invoice.html
@@ -3,33 +3,33 @@