Getting propper UTF-8 output in PHP

Posted: May 29th, 2009 | Author: | Filed under: PHP | Comments Off on Getting propper UTF-8 output in PHP

utf8They are the nightmare of every PHP programmer: unknown characters suddenly showing up on your pages. The basic workaround is to htmlentity-encode everything. But one day you’ll get fed up with this dirty work-around and will want to get to the bottom of the problem. That’s what happend to me yesterday.

Read the rest of this entry »


Finding the Perfect Lightbox

Posted: May 19th, 2009 | Author: | Filed under: JS | Tags: , | 3 Comments »

I need a proper lightbox. Now there are plenty of lightboxes out there that should satisfy my needs, but I could not find the perfect fit. My ‘demands’ are as follows:

  • Flawless (X)HTML, also the generated code
  • Can be used to display images, partial HTML, hidden content from same page, iframes (for form processing) and request contents with AJAX.
  • auto adjust size to contents, unless overruled by settings.
  • Easily styled through external CSS (I do not want to apply styles using JS)
  • Can group images into sets and navigate through them
  • Stacking of boxes (open lightbox from within a lightbox)
  • jQuery may be used, but no other library (as it is already available in this specific project)

Read the rest of this entry »