in reply to UTF-8 and browsers - Update

In general, you shouldn't try to utf8-encode yourself -- instead, let perl do the work of encoding, and just give the abstract codepoints. This is, in fact, what is causing your problem. You specified character 0x4F, followed by character 0x308, that is, "LATIN CAPITAL LETTER O", "COMBINING DIAERESIS". I think you wanted that to be 0xA8, "DIAERESIS".


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).