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 trialSatish Dhinakaran
584 PointsSet the character set for this page.
I tried <meta charset= UTF-8>
But I'm getting error. Can anybody please help me on this.
11 Answers
Timothy Crandall
4,354 Points<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>```
Timothy Crandall
4,354 Points<meta charset="utf8">```
If I understand your issue correctly, this should be inbetween your head tags. Make sure to type it in yourself, don't copy and paste, I don't know if that will cause an error or not.
Timothy Crandall
4,354 PointsSloppy code, I know. What it should really be is:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
Satish Dhinakaran
584 PointsSorry I'm not able to type the error. Can you please help me on this. TY.
Timothy Crandall
4,354 PointsMake sure to use the Markdown Cheatsheet (bottom right bold) to help you with posting your code.
Satish Dhinakaran
584 PointsBut I typed with out ' ' ' it worked awesome. Thanks so much for your help.
Timothy Crandall
4,354 PointsSorry, the three backticks were to display the code :) Great I'm glad it worked for you!
Marck Cabug-os
6,853 Pointsno spaces like this <meta charset="utf-8"> instead of this <meta charset = "utf-8">
Bailey Bryant
573 Points???????????????????????????????????????????????
Bailey Bryant
573 PointsHow do i set the character set without html 5
Nurul Ahsan
2,039 Points<meta charset="utf-8">
Nurul Ahsan
2,039 Points<meta charset="utf-8">
Donald Blake
428 Points<meta charset="utf-8"> Put a space between meta and charset only!!!!!
Timothy Crandall
4,354 PointsHi, what does your code look like, and what is your error message please.