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

前端 未结 8 1510
[愿得一人]
[愿得一人] 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条回答
  • If any one had the same problem as me and the charset was already correct, simply do this:

    1. Copy all the code inside the .html file.
    2. Open notepad (or any basic text editor) and paste the code.
    3. Go "File -> Save As"
    4. Enter you file name "example.html" (Select "Save as type: All Files (.)")
    5. Select Encoding as UTF-8
    6. Hit Save and you can now delete your old .html file and the encoding should be fixed
    0 讨论(0)
  • 2020-11-22 11:34

    Well I got this Issue too in my few websites and all i need to do is customize the content fetler for HTML entites. before that more i delete them more i got, so just change you html fiter or parsing function for the page and it worked. Its mainly due to HTML editors in most of CMSs. the way they store parse the data caused this issue (In My case). May this would Help in your case too

    0 讨论(0)
  • 2020-11-22 11:42

    In my case I was getting latin cross sign instead of nbsp, even that a page was correctly encoded into the UTF-8. Nothing of above helped in resolving the issue and I tried all.

    In the end changing font for IE (with browser specific css) helped, I was using Helvetica-Nue as a body font changing to the Arial resolved the issue .

    0 讨论(0)
  • 2020-11-22 11:43

    Problem: Even I was facing the problem where we were sending '£' with some string in POST request to CRM System, but when we were doing the GET call from CRM , it was returning '£' with some string content. So what we have analysed is that '£' was getting converted to '£'.

    Analysis: The glitch which we have found after doing research is that in POST call we have set HttpWebRequest ContentType as "text/xml" while in GET Call it was "text/xml; charset:utf-8".

    Solution: So as the part of solution we have included the charset:utf-8 in POST request and it works.

    0 讨论(0)
  • 2020-11-22 11:44

    The reason for this is PHP doesn't recognise utf-8.

    Here you can check it for all Special Characters in HTML

    http://www.degraeve.com/reference/specialcharacters.php

    0 讨论(0)
  • 2020-11-22 11:49

    I was having the same sort of problem. Apparently it's simply because PHP doesn't recognise utf-8.

    I was tearing my hair out at first when a '£' sign kept showing up as '£', despite it appearing ok in DreamWeaver. Eventually I remembered I had been having problems with links relative to the index file, when the pages, if viewed directly would work with slideshows, but not when used with an include (but that's beside the point. Anyway I wondered if this might be a similar problem, so instead of putting into the page that I was having problems with, I simply put it into the index.php file - problem fixed throughout.

    0 讨论(0)
提交回复
热议问题