On Wednesday 13 April 2005 9:23 pm, Ingo Blechschmidt wrote: > Ok, then it seems we need to have a builtin, such that: > new_builtin(0xE2) ~ new_builtin(0x82) ~ new_builtin(0xAC) eq > "\xE2\x82\xAC" Doesn't it make more sense for a decode_utf8 function such that
decode_utf8(0xE2, 0x82, 0xAC) eq chr(0x20AC) No reason why this function can't also handle multiple characters decode_utf8((0xE2, 0x82, 0xAC) xx 3) eq chr(0x20AC) x 3 but probably can't handle partial characters decode_utf8(0xE2, 0x82) # error This function doesn't even have to be built in, by the way. -- -Roie v2sw6+7CPhw5ln5pr4/6$ck2ma8+9u7/8LSw2l6Fi2e2+8t4TNDSb8/4Aen4+7g5Za22p7/8 [ http:www.hackerkey.com ]