Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Text Paragraphs and Headlines

Janos Antal
Janos Antal
1,451 Points

Special characters in html <p>

Hello!

I wanted to use special letters in my html practice file, like: áéöüóíú etc. But I get only "?" instead of the letters in the browser. I have <meta charset="utf-8"> included. Why I do not get the letters then?

cheers

3 Answers

Stephen Little
Stephen Little
8,312 Points

Check out this page, I think it will give you what you want to know..

http://www.w3schools.com/charsets/ref_utf_latin1_supplement.asp

Janos Antal
Janos Antal
1,451 Points

nonononono I definitely do not want to use ascii and other codes instead of every letters. The browser shall show my letters normally if I place them as letters in the html code. If I check the the source of a hungarian text page then there are normal letters also in the code not things like "£"

Stephen Little
Stephen Little
8,312 Points

Sorry I'm not sure, what charset are you using in your page? maybe look at

http://www.w3schools.com/charsets/ref_utf_latin1_supplement.asp

hope this help, sorry if I'm not understanding what you are looking for ;(, just trying to help :)

Cheers!@

Janos Antal
Janos Antal
1,451 Points

I use utf 8: meta charset="utf-8"

Stephen Little
Stephen Little
8,312 Points

If you want to be able to type in those other chars I would think that you would have to use something like this instead of the utf-8

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

Again not sure if it helps, but knows ;)

have a great day!

Jeremy Castanza
Jeremy Castanza
12,081 Points

Are you typing the entity in your HTML code?

For example, if you wanted a copyright symbol, you would want to type:

&copy;

...rather than just copy and pasting the symbol itself.