is there a way to highlight all the special accent characters in sublime text or any other text editor?

后端 未结 3 807
囚心锁ツ
囚心锁ツ 2020-12-12 10:50

I a using the the HTML encode special characters in Sublime text to convert all the special character into their HTML code. I have a lot of accented characters in different

3条回答
  •  甜味超标
    2020-12-12 11:05

    Yes.

    Sublime text supports regular expression and you can select all non-ASCII (code point > 128) characters. This regex find should be enough for you:

    [^\x00-\x7F]
    

    Just search and replace.

    But if you are doing manual HTML encode in the first place you are doing it wrong. Save your files as UTF-8 encoding (Sublime Text 2 default) and make sure your web server also sends out those files as UTF-8. No conversion, encoding or anything needed.

提交回复
热议问题