ADC Home > Reference Library > Technical Q&As > Cocoa > Data Management >
|
Q: As of Mac OS X 10.2, Cocoa apps seem to put a spurious character at the beginning of scrap data. What's going on here? A: Cocoa has always put a Byte Order Mark (BOM) character (for indicating endianness) in Unicode text on the clipboard, and as of 10.2, it does so for the 'utxt' scrap flavor as well, as documented by Inside Mac:Text Encoding Conversion Manager. Code that reads the 'utxt' data should look for and strip the BOM character (instead of simply displaying it), and if it is [Jan 20 2003] |