Difference between revisions of "FAQ"

From CSE330 Wiki
Jump to navigationJump to search
(Created page with "Welcome to the frequently asked questions page for Module 1. As many common questions can come up on Piazza, some of those questions are consolidated here. == HTML Validator...")
 
Line 7: Line 7:
 
The character encoding was not declared. Proceed using Windows-1252
 
The character encoding was not declared. Proceed using Windows-1252
 
</source>
 
</source>
''Brief explanation of character encoding.''
+
When writing html, you need to include a method of [http://net-informations.com/q/faq/encoding.html#:~:text=A%20character%20encoding%20tells%20the,grouped%20into%20a%20character%20set. character encoding] so the computer knows exactly how you want your data to be interpreted. There are multiple character encoding schemes, but perhaps the most common for modern web and application development is Unicode Transformation Format (UTF) 8.
 
This error can be easily solved by including the following line in your HTML header:
 
This error can be easily solved by including the following line in your HTML header:
 
<source lang="html4strict">
 
<source lang="html4strict">

Revision as of 13:57, 14 December 2020

Welcome to the frequently asked questions page for Module 1. As many common questions can come up on Piazza, some of those questions are consolidated here.

HTML Validator

Students frequently see the following error message when putting their code through the W3C Validator.

The character encoding was not declared. Proceed using Windows-1252

When writing html, you need to include a method of character encoding so the computer knows exactly how you want your data to be interpreted. There are multiple character encoding schemes, but perhaps the most common for modern web and application development is Unicode Transformation Format (UTF) 8. This error can be easily solved by including the following line in your HTML header:

<meta charset="utf-8">

Second Question