> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] > From: David Kastrup <[EMAIL PROTECTED]> > Date: Mon, 10 Jan 2005 10:09:41 +0100 > > Just encode the line to utf-8, find the correct point in the byte > string, cut off the line there, convert back and check the length of > the string.
This isn't needed, I think: the number of bytes in the UTF-8 encoding of a certain Unicode codepoint is a very simple function of the codepoint. > This works unless you are in the middle of a character. I think this cannot happen, since spelling always works on character boundaries. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]