On Sun, Aug 25, 2013 at 7:30 PM, Rene Gollent <anevilyak@xxxxxxxxx> wrote: > > On Aug 25, 2013 5:28 PM, "John Scipione" <jscipione@xxxxxxxxx> wrote: >> This might not be likely but in the interest of defensive programming I >> wanted to prevent the problem from being able to present itself. >> >> Am I being too cautious? > > Yes. A multibyte constant will always have the high bit set on the first > byte, so that can't in fact happen. Thank you Rene for taking the time to reply, I'm about ready to revert the change, I just wanted to make sure that what you're saying is right first. Will a multibyte constant always have the high bit set on the first byte for every multibyte encoding or just UTF-8? While a view is normally set to use UTF-8, the view's encoding can be changed by SetFont() using the B_FONT_ENCODING flag. From the BeBook: "The bytes value follows the character encoding of the BView's font."