> Harold Hallikainen wrote: >>>> I've already written a UTF-8 to 16 bit Unicode converter for >>>> another project, so I guess I'll take that and drive an if to pass >>>> through >>>> ASCII and a switch case to handle CP1252 above 0x7f. A lot of the >>>> codes >>>> line up, but several don't. >>>> >>>> >>> Exactly 32 don't and they are all in one continuous block (0x80 to >>> 0x9F) >>> so a small table for that block might be another option to consider. >>> >> Excellent! >> > Unfortunately i've just realised I was wrong, while the exceptions are > in one contiguous block in windows-1252 they are spread all over the > place in unicode so my advice would have been good for a 1252 to unicode > converter but not for a unicode to 1252 converter. > OK, I'm at home and all that is at work... I guess I'll go back to my switch case. Thanks! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist