in reply to Unicode word wrapping

I'm unsure I unerstood the problem in the right way. But from my point of view I could advice generate all your pages with the following line in the HEAD
<META NAME="Content-Type" CONTENT="text/HTML;CHARSET=utf-8">
or add
Content-Type: text/html; charset=utf-8
to the HTTP header. And produce all your mages in UTF-8.

It will cause automatically switching of the user agent to UFT-8, and so you will have no problem with many codepages.

Although take into consideration that specifying different charsets in HTTP and HTML can cause expected behavor of browsers.

-- Yuriy Syrota