tags:

views:

58

answers:

1

hey,

On my html document for some reason instead of printing what it's suppose to be, it's just displaying

&

encoding is utf-8

any ideas?

Thanks

A: 

That's the entity code for a ampersand - which is why it's actually displaying as &. Just add amp to the end to actually show it.

&

Which will '&' in an HTML document.

Alex King
i thought the question was the inverse. that is, i think the issue may be doubke encoding the output.
atk
Yeah, I believe it is the inverse. This answer is only applicable to the original question, not sure about the new one.
Alex King
ha, this was for the wrong thing I asked but it actually came in very useful :D Thanks guys i got it figured out.
Belgin Fish