문제

I am having a issue with characters in my XML when I view it on a website. The character I want to be put in is § and what is coming out is § and my xml is <?xml version="1.0" encoding="UTF-8"?>. Any suggestions? Thanks!!

도움이 되었습니까?

해결책 2

instead of the character § you can use its html code which is either &#167 or &sect.

have a look here Ascii Code, every ascii symbol has a dedicated html code that can be used instead of the symbol.

like the unbreakable space which i am sure you are familiar with: &nbsp

다른 팁

If you see “§” as “§”, then the reason is usually that the data contains “§” SECTION SIGN U+00A7 as UTF-8 encoded, as bytes 0xC2 0xA7, but it is being misinterpreted as being in an 8-bit encoding like windows-1252 or ISO-8859-1. Alternatively, an incorrect character code conversion (“double UTF-8 encoding”) has taken place.

Check out the HTTP headers of the web page. If they declare an encoding other than UTF-8, they may override the in-document declaration.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top