From a5d61bdef1df576e161fd5dbbf2f04496b7cdc45 Mon Sep 17 00:00:00 2001 From: azu Date: Thu, 24 Oct 2024 22:30:33 +0900 Subject: [PATCH] Update data/2024/10/index.json --- data/2024/10/index.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/data/2024/10/index.json b/data/2024/10/index.json index 44cfe0e06..751a1a4c5 100644 --- a/data/2024/10/index.json +++ b/data/2024/10/index.json @@ -576,6 +576,18 @@ "url": "https://github.com/pmndrs/zustand/blob/main/docs/migrations/migrating-to-v5.md" } ] + }, + { + "date": "2024-10-24T13:30:31.736Z", + "title": "The nuances of base64 encoding strings in JavaScript  |  Articles  |  web.dev", + "url": "https://web.dev/articles/base64-encoding", + "content": "絵文字やサロゲートペアを安全に扱えるBase64エンコードについて。\n`btoa()`/`atob()`はUnicodeを扱うときに問題があるため`TextEncoder`でエンコードしてから扱う。\n`TextEncoder`は単独のサロゲートを持つ文字列を不正なデータとして � に置き換えてしまうため、`isWellFormed()`を使い判定する話", + "tags": [ + "Unicode", + "JavaScript", + "article" + ], + "relatedLinks": [] } ] }