Menu

#2 Fix name attribute & move to utf-8

Unstable (example)
closed
nobody
None
5
2015-02-20
2007-09-12
brettz9
No

Hi,

1) I fixed the <a name> tags (and the <a href> leading to them within that same page) to be preceded with 'id' in demo.php.html since XML doesn't allow names to begin with a number. Now the code validates without warnings.

2) In demo.php.html I changed <a href="#" ...> to <a href="javascript:void(0);" ... > which also allows the onclick to activate but doesn't force the page to go to the top.
3) In demo.php.html and demo.php I've changed "iso-8859-1" to "utf-8" in the <meta content> tag and saved the files as UTF-8 without the BOM. The template files should also be saved in utf-8 without the BOM to allow people to add non-ASCII characters there as well. (There are probably numerous other pages I haven't come to yet which should also be converted in this way, as with their meta tags.

To work with these files in this latter manner though, it is important that the files are always saved as UTF-8 without the BOM (both the PHP/HTML files and the templates). In Notepad++, go to Format->"Encode in ANSI" + "UTF-8 Without BOM" (you can also have it set as the default which is a good idea given that Unicode is taking over).

Discussion

  • brettz9

    brettz9 - 2007-09-12
     
  • ank-99

    ank-99 - 2015-02-20
    • status: open --> closed
    • Group: --> Unstable (example)
     

Log in to post a comment.

MongoDB Logo MongoDB