From 55b8e6380c25a74c20fc192c59b0196f1cdfe540 Mon Sep 17 00:00:00 2001 From: Bui Thanh Son <82097639+kuroshiro1902@users.noreply.github.com> Date: Thu, 27 Nov 2025 19:59:47 +0700 Subject: [PATCH] fix: add UTF-8 encoding for async migrations file reading (#279) Add UTF-8 encoding when opening migration files. --- open_notebook/database/async_migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open_notebook/database/async_migrate.py b/open_notebook/database/async_migrate.py index de24b07..f305758 100644 --- a/open_notebook/database/async_migrate.py +++ b/open_notebook/database/async_migrate.py @@ -22,7 +22,7 @@ class AsyncMigration: @classmethod def from_file(cls, file_path: str) -> "AsyncMigration": """Create migration from SQL file.""" - with open(file_path, "r") as file: + with open(file_path, "r", encoding="utf-8") as file: raw_content = file.read() # Clean up SQL content lines = []