[jQuery] XML encoding UTF-8
Hello i have a really strange problem with encoding problems.
This is the code that i put in the XML file
"
sdfasdf :) asdfa & l t ;script& g t ;alert(& # 039;asdf& # 039; ) ; & lt
;/script> <hr> :):)<br />
asdf<br />
asdf<br />
asdf wef lwekf adosnt<br />
asdgivealeuf asdlfk uasdfk<br />
asdfawefl kjasdfl asdfoucktdk
"
I use htmlentities(ENT_QUOTES, 'UTF-8') and nl2br() in PHP
Now when i place this value in a div
I get an alert(what i dont want becouse i replaced > < with utf-8) and the
<br /> are lost?
how is this possible?
(i did put some spaces in the example)
--
View this message in context: http://www.nabble.com/XML-encoding-UTF-8-tp18962515s27240p18962515.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.