Can a valid Unicode string contain FFFF? Is Java/CharacterIterator broken?

EDIT (2013-12-17): Peter O. brings up an excellent point below, which renders this answer wrong. Old answer below, for historical accuracy. Answering your questions: Is the prescribed traversal idiom “broken” because it makes the wrong assumption about \uFFFF? No. U+FFFF is a so-called non-character. From Section 16.7 of the Unicode Standard: Noncharacters are code points … Read more