> Harold Hallikainen wrote: > >> Before I start to write my own, does anyone have some C code to >> convert a string in UTF-8 to CP1252? > > I don't, but maybe you can lift something out of there > > > Gerhard Thanks! That seems a lot more complex than I need, probably because it does so many different conversions. Also... people sure comment code less that I do! 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. 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