Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/2026-02-04/manifest-fenc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ブックマークの同期において、`manifest.json` の `name` の値が文字化けする問題が発生しています
修正してください
なお `manifest.json` ファイルは UTF-8 エンコーディングされているものとします
8 changes: 7 additions & 1 deletion lib/github/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ export const fetchFileContent = async (
const data = (await response.json()) as RepoContent;
if (!data.content) return null;

return atob(data.content);
// Decode base64 to binary string, then convert to Uint8Array, then decode as UTF-8
const binaryString = atob(data.content);
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return new TextDecoder().decode(bytes);
};

/**
Expand Down