Remove wierd characters in xml output

后端 未结 1 953
执笔经年
执笔经年 2020-12-12 07:46

I\'m trying to remove weird characters in xml output. Here\'s the code and output:

It seems there are encoding issues. I have tried adding and this a convert from

1条回答
  •  天涯浪人
    2020-12-12 08:25

    Your HTML document is incomplete. You are missing the entire head tag, which should have a content type meta tag that specifies the content and encoding. Right now the browser has to guess what the encoding is, and guesses wrong.

    A correct HTML document has a head tag with a title tag, that's where you add the meta tag:

    
      Page name
      
    
    

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