Skip to content

Save text error encoding fix: encoding="utf-8" #520

@obsidianocean

Description

@obsidianocean

When working with non-ASCII text on Windows the save text node will fail. Python on Windows defaults to cp1252 when you open files. Adding encoding="utf-8" fixes this.

please add something like this to your text_files.py

with open(self.file, "a+" if kwargs["append"] == "append" else "w", encoding="utf-8"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions