Classic ASP (VBScript) replace special character in a string is acting strange
问题 In classic ASP (VBScript), when I replace the string, a strange character appears. <% myString = "My Ttitle ®" myString = Replace(myString,"®", "®") Response.Write(myString) %> If I print this out to HTML, the final result is (Which has a strange A in it): My Ttitle ® 回答1: add this at the top of your page <%@ language="vbscript" codepage="65001"%> open your file in a text editor, (notepad will do) select Save As from the file menu and choose utf-8 rather than ANSI encoding add in your head