Ultraviolet icon indicating copy to clipboard operation
Ultraviolet copied to clipboard

for support better text decode

Open bk1412 opened this issue 9 months ago • 1 comments

Expected Behavior

noraml decode html text,even respon header "Content-Type" not set "charset=utf-8"

Current Behavior

without english page,some other language maybe have text decode problem

Possible Solution

src/uv.sw.js line 241-242 to add:

if (responseCtx.headers["content-type"].includes("text/html")) {
	responseCtx.headers["content-type"] = "text/html;charset=utf-8";
}

bk1412 avatar May 08 '24 06:05 bk1412

You should open a pull request for this

proudparrot2 avatar May 08 '24 12:05 proudparrot2