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 trialkevin Neo
Courses Plus Student 1,417 Pointswhat happen if we did not set the charset?
Would the html code still work if we did not set charset=""?
1 Answer
tobiaskrause
9,160 PointsMost browsers and user agents will first look at the HTTP headers to find encoding information there. Also some browser will infer the correct coding anyway or set their default encoding.
Look at chrome: Settings => More Tools => encoding => automatically (most of the time it is set to UTF-8) The problem is when the browser set the worng encoding with this setting but that does happen rarely