The javascript alert() function is a function for input prompts, but today when using the alert() prompt, the Chinese characters are garbled, and there is no problem with pinyin or anything else. I found a solution in the forum and share it with you below.
Solution 1: