That is not UTF-8, that is percent encoding also known as url encoding.

You can use decodeURIComponent() to convert it back before displaying it

$("#quote1 span").html(decodeURIComponent(text1));

Answer from Lepidosteus on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › decodeURI
decodeURI() - JavaScript | MDN
The decodeURI() function decodes the URI by treating each escape sequence in the form %XX as one UTF-8 code unit (one byte). In UTF-8, the number of leading 1 bits in the first byte, which may be 0 (for 1-byte ASCII characters), 2, 3, or 4, indicates the number of bytes in the character.
🌐
Eric Meyer
meyerweb.com › eric › tools › dencoder
URL Decoder/Encoder
The URL Decoder/Encoder is licensed under a Creative Commons Attribution-ShareAlike 2.0 License.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › decodeURIComponent
decodeURIComponent() - JavaScript | MDN
decodeURIComponent("JavaScript_шеллы"); // "JavaScript_шеллы" js · try { const a = decodeURIComponent("�%A"); } catch (e) { console.error(e); } // URIError: malformed URI sequence · decodeURIComponent() cannot be used directly to parse query parameters from a URL.
🌐
URL Decode
urldecoder.org
URL Decode and Encode - Online
Live mode: When you turn on this option the entered data is decoded immediately with your browser's built-in JavaScript functions, without sending any information to our servers.
🌐
W3Schools
w3schools.com › Jsref › jsref_decodeuricomponent.asp
JavaScript decodeURIComponent() Method
❮ Previous JavaScript Global ... let decoded = decodeURIComponent(encoded); Try it Yourself » · The decodeURIComponent() method decodes a URI component....
🌐
GitHub
gist.github.com › 4589320
Javascript url decode · GitHub
Javascript url decode. GitHub Gist: instantly share code, notes, and snippets.
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › encodeURI
encodeURI() - JavaScript | MDN
July 8, 2025 - The following function encodes a string for RFC3986-compliant URL format. js · function encodeRFC3986URI(str) { return encodeURI(str) .replace(/[/g, "[") .replace(/]/g, "]") .replace( /[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, ); } decodeURI() encodeURIComponent() decodeURIComponent() Was this page helpful to you?
🌐
Master
master.dev › blog › encoding-and-decoding-urls-in-javascript
Encoding and Decoding URLs in JavaScript – Master.dev Blog
February 20, 2024 - Decoding is important when you receive an encoded URL and need to extract information from it, similar to solving a puzzle in which you must decode to receive the message. In JavaScript, you can decode a URL using the decodeURIComponent() function.
🌐
Medium
ashishdev48.medium.com › encode-and-decode-uri-in-javascript-a-complete-guide-976f4986f6cf
Encode and Decode URI in JavaScript: A Complete Guide | by Ashishkumarjena | Medium
June 17, 2026 - JavaScript provides three primary methods for encoding and decoding URIs: ... Let’s break down each of these functions, their use cases, and examples. The encodeURI() function is used to encode an entire URI. It’s ideal when you want to encode a full URL but want to preserve certain characters that have special meanings in URLs (such as ?, &, #, =).
🌐
W3Schools
w3schools.com › jsref › jsref_decodeuri.asp
JavaScript decodeURI() Method
❮ Previous JavaScript Global ... = encodeURI(uri); let decoded = decodeURI(encoded); Try it Yourself » · The decodeURI() method decodes a URI....
🌐
Medium
medium.com › @aleksej.gudkov › how-to-use-a-url-decoder-in-javascript-console-1e2b1b62c2d8
How to Use a URL Decoder in JavaScript Console | by UATeam | Medium
December 5, 2024 - The easiest way to decode a URL in JavaScript is with the built-in decodeURIComponent() function.
🌐
GitHub
gist.github.com › 6565497
From http://www.webtoolkit.info/javascript-url-decode- ...
From http://www.webtoolkit.info/javascript-url-decode-encode.html · Raw · url.js · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
Latenode
community.latenode.com › other questions › javascript
JavaScript method for URL encoding in GET requests - JavaScript - Latenode Official Community
May 12, 2025 - Hey everyone! I’m trying to figure out how to properly encode a URL in JavaScript. I want to use it in a GET request, but I’m not sure about the best way to do it safely. Here’s what I’m working with: let baseUrl = 'htt…
🌐
Board Infinity
boardinfinity.com › blog › encoding-and-decoding-url-in-javascript-how
URI Encoding and Decoding in Web Development Explained
August 30, 2025 - In the URL string, where the server will decode it, the query parameters must likewise be encoded. Numerous browsers automatically encrypt and decrypt the response string and URL. E.g., A space " " is encoded as a + or . The method from JavaScript below can be used to convert the special characters.
🌐
Instagram
instagram.com › popular › js-url-decode
Js Url Decode
We cannot provide a description for this page right now
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › URL
URL - Web APIs | MDN
June 2, 2026 - The URL interface is used to parse, construct, normalize, and encode URLs. It works by providing properties which allow you to easily read and modify the components of a URL.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-encode-and-decode-a-url-in-javascript
How to Encode and Decode a URL in JavaScript? - GeeksforGeeks
July 23, 2025 - The querystring module provides utilities for parsing and formatting URL query strings. It can be used to encode and decode URL components.