From 763a60982aa354daafb6cde9bc2df25b2e0e7e2d Mon Sep 17 00:00:00 2001 From: Walyson G Oliveira Date: Fri, 16 May 2025 16:37:00 -0300 Subject: [PATCH] Adjusting the JSON viewing response to accept accentuation (#203) --- src-web/components/responseViewers/TextViewer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-web/components/responseViewers/TextViewer.tsx b/src-web/components/responseViewers/TextViewer.tsx index b8f141a2..bb8695cb 100644 --- a/src-web/components/responseViewers/TextViewer.tsx +++ b/src-web/components/responseViewers/TextViewer.tsx @@ -116,11 +116,14 @@ export function TextViewer({ language, text, responseId, requestId, pretty, clas body = formattedBody.data; } + // Decode unicode sequences in the text to readable characters + const decodedBodyText = unescape(body.replace(/\\u/g, '%u')) || body; + return ( ); } +