On Saturday 29 August 2009 17:11:23 David C. Rankin wrote:
Listmates,
I'm parsing output that has the degree symbol in it in c. The character code for the symbol is 167, but of course the ascii character set it limited to 0-127. Believe it or not, using a cut-n-paste into the strtok delimiter set works, but that just feels like a cludge. Example:
Find the unicode code point. Use a universal character name. (In this case, \u00B7, I think.) Any universal character name that is \u00FF or less can be a char; \u0100 and above have to be in a wchar_t. Using multi-byte characters in the source results in implementation-specific behavior, and I don't know if strtok handles multi-byte characters properly. See sections 6.4.3, 6.4.4.4.1, 6.4.4.4.9, and 6.4.5.1 in ISO/IEC 9899:1999 to begin with. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/