HTML encoding issues - “” character showing up instead of “ ”

前端 未结 8 1630
[愿得一人]
[愿得一人] 2020-11-22 10:55

I\'ve got a legacy app just starting to misbehave, for whatever reason I\'m not sure. It generates a bunch of HTML that gets turned into PDF reports by ActivePDF.

T

8条回答
  •  臣服心动
    2020-11-22 11:58

    In my case this (a with caret) occurred in code I generated from visual studio using my own tool for generating code. It was easy to solve:

    Select single spaces ( ) in the document. You should be able to see lots of single spaces that are looking different from the other single spaces, they are not selected. Select these other single spaces - they are the ones responsible for the unwanted characters in the browser. Go to Find and Replace with single space ( ). Done.

    PS: It's easier to see all similar characters when you place the cursor on one or if you select it in VS2017+; I hope other IDEs may have similar features

提交回复
热议问题