Slime Update Archive - March 2003
I recently changed majors into Computer Science. I’d tell you what I was majoring in before, but it would just take to much explanation, and in the end you wouldn’t care anymore. Ironically, as a result, next semester I have to take some social sciences classes. At least one, depending on whether I can get into a certain Computer Graphics class that I need to bypass a prerequisite for.
Well, back to map editing!
That’s what the Crypt Lord says. I know that because I just got into the Warcraft III Expansion Pack beta. Woohoo! Updates may be few and far between due to this new development. Sorry =)
I’ve been purposefully avoiding working on my web site for the last week or so in favor of getting more schoolwork done. This has made a tiny increase in the amount of schoolwork that I’m getting done, and a huge increase in how bored I am.
Another bit of good news is the Warcraft 3 multiplayer map contest that Blizzard just announced, which makes me happy since I love making multiplayer maps for that game. On the other hand, it contradicts the resolution I mentioned in my first paragraph. Oh well!
Go check out my article, if you haven’t already.
Hello, loyal visitor! I have a treat for you today.
Non-loyal visitors are also welcome to look, I guess.
Oh, and let me know what you think.
If you create web pages as often as I do, you’re undoubtedly familiar with the necesessity of including a correct DOCTYPE on your pages. You may also be familiar with the fact that Internet Explorer 6 for Windows has this little doctype-related bug: the doctype definition must be the very first thing on the page, and can be preceeded only by whitespace. (Let’s all take a moment and thank Microsoft for this.) This isn’t such a big deal when you’re working with HTML 4.01.
However, there’s a little problem that occurs when you start writing XHTML: XHTML, as an XML language, is supposed to have
an XML declaration (for instance,
<?xml version="1.0"?>). This XML declaration is supposed to be the very first thing on the page. That means that it causes IE6/Win to ignore the
page’s doctype definition!
Thankfully, the XML declaration is optional, so the majority of XHTML writers tend to simply leave it out. Unfortunately, it turns out that this is not always allowed. From the XHTML 1.0 Specifications:
An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol.
As you can see, it turns out that if you’re using a character encoding other than UTF-8 or UTF-16, such as ISO-8859-1 (which is quite common), the XML declaration is, in fact, required. The exception is when an encoding was determined “by a higher-level protocol.” On the Web, this means that the encoding must be sent in the HTTP header, if it is not UTF-8.
What does this mean? It means that, unless you can guarantee that your server is sending the correct HTTP header along with your document, and that your document will not be used except when sent from the server, you should be using UTF-8 to encode it.
Note that if the XML declaration is ommitted, a
meta tag should be in the head of the document to specify the character encoding, such as
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
If you know that your server is sending the correct charset in the HTTP header, then you don’t have to worry about it. But
otherwise, make sure that if you’re writing XHTML without the XML declaration, you’re using UTF-8. Unless you’re using some
strange characters, this doesn’t require any more effort than using the correct
meta tag described above.
I discovered this while working on an XSLT sheet for a new peice of content. Check back for updates.
It begins. Now I can finally get some real work done.
Oh, and guess what? The W3C appears to be bringing back frames into the XHTML 2.0 spec! Good for them! Not that I encourage people to use frames; it’s just that sometimes a site with heavy navigation really needs them.
Well, I didn’t make it into the Warcraft 3 expansion pack beta. Maybe I’ll get in one of the later phases.
That project, plus a couple of new hour (well, 58 minute)-long DJ mixes that Dan gave me, is the reason I haven’t updated in days.