Welcome! Log In Create A New Profile

Advanced

Question: Encoding in Notepad

Posted by RMcC-77729765 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Question: Encoding in Notepad
September 27, 2012 10:12AM
Sometimes when I check my error console it tells me that my enocding has not been specified. In trying to research this it seems that UTF-8 is the better code to save in but I am really confused about this. Should we be saving our html files with ANSI encoding or UTF-8. Can this affect how browsers read our codes. Should we be specifying this in our head section and how do we do this? What about Unicode and Unicode big endian?
avatar
Mac
Re: Question: Encoding in Notepad
September 28, 2012 08:57AM
If you are really interested, get technical here: http://www.webmasterworld.com/forum21/11176.htm

Short answer - UTF-8 is... better.... but... it depends on what you are doing. It gets more important if you work with funny symbols from funny languages.

Just use:

Language: HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head>
Sorry, only registered users may post in this forum.

Click here to login