From 8356dbdbfeeba5fa89704a87e1ae418f4656f5a8 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Fri, 27 Mar 2026 14:17:16 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20add=20charset=3Dutf-8=20to=20VTT=20conte?= =?UTF-8?q?nt-type=20to=20prevent=20=E2=99=AA=20encoding=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without charset specification, browsers/tools interpret text/vtt as Latin-1, causing UTF-8 multi-byte characters like ♪ (U+266A) to render as garbled text (♪). Co-Authored-By: Claude Sonnet 4.6 --- backend/app/services/gcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/gcs.py b/backend/app/services/gcs.py index 8b03f96..09f60c5 100644 --- a/backend/app/services/gcs.py +++ b/backend/app/services/gcs.py @@ -133,7 +133,7 @@ async def upload_file_to_gcs(file: UploadFile, destination_path: str) -> str: return await gcs_service.upload_file_to_gcs(file, destination_path) async def upload_vtt_to_gcs(content: str, destination_path: str) -> str: - return await gcs_service.upload_text_to_gcs(content, destination_path, "text/vtt") + return await gcs_service.upload_text_to_gcs(content, destination_path, "text/vtt; charset=utf-8") async def upload_json_to_gcs(content: str, destination_path: str) -> str: return await gcs_service.upload_text_to_gcs(content, destination_path, "application/json")