Commit 5f04230ef21f7264675b820231a64f02ed1b62e4
1 parent
56a871d7
Handle UTF-8 properly in Log Object Data keyword
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -66,7 +66,7 @@ def log_object_data(data, file_name="", format="yaml"): |
66 | 66 | else: |
67 | 67 | data = data.toYAML(allow_unicode=True, default_flow_style=False) |
68 | 68 | format = 'yaml' |
69 | - LOGGER.log_message(Message(data, "INFO")) | |
69 | + LOGGER.log_message(Message(data.decode('utf-8'), "INFO")) | |
70 | 70 | if file_name: |
71 | 71 | output_dir = BuiltIn().get_variable_value("${OUTPUT_DIR}") |
72 | 72 | with open(os.path.join(output_dir, file_name + '.' + format), "w") as file_obj: | ... | ... |
Please
register
or
login
to post a comment