Thursday, July 21, 2011

For more information

For information about the books I am publishing in English about Barcelona and Catalonia, see Catalonia Press.

For my general website, see

For my regular blog—which lately is quite EPUB heavy—see Pigs, Gourds, and Wikis.

Friday, July 23, 2010

I've consolidated my blogs

From now on, I'm posting everthing to my main blog: Pigs, Gourds, and Wikis. Come join me over there!

You can find just the HTML related posts by clicking HTML in the Labels section.

Wednesday, February 10, 2010

The Importance of Character Encodings

I'm amazed at how many non-supported characters I see out on the Web. I spent a long time researching and deciphering just how to use the proper character encoding so that this doesn't happen to you. You can read all about it in Chapter 21, Symbols and Non-English Characters, of my HTML, XHTML, and CSS: Visual QuickStart Book.

Doing some research on Barnes and Noble's new electronic book reader, the nook, I saw this:
Wrong Character Set on Barnes and Noble site

Looking at the source code, you can see that B&N did not declare their character encoding. Firefox assumed it was UTF-8, but since it wasn't, the special symbols display incorrectly. If you're just a Web site visitor and want to see the page without those annoying question marks, go to View > Character Encoding, and choose a different encoding from the one Firefox tried originally. If that happens to match the character encoding that the Web site creator used, you're in luck. If not, try again until you find it.

If you're a Web site designer, be sure and declare your page's Character Set so that browsers don't have to guess. At the top of your page, put:

<meta http-equiv="content-type" content="text/html;charset=code" />

where code is the character set encoding you used to write your page. I explain how to tell which one you used (and how to choose an appropriate one if you're not already), in my book!

My Books