[key]-[itoa]

Georg Hajdu's icon

I tried to feed the output of [key] into [atoi] but noticed that for ascii > 128, key puts its data out in unicode decimal format whereas atoi expects input in utf-8 format. Since I couldn't find an object that took care of the conversion, I quickly wrote my own which I'd like to share with you (requires Jasch's multisplit). At the same time, I'm wondering whether someone has done this before and would appreciate a pointer.

Max Patch
Copy patch and select New From Clipboard in Max.

Georg

2448.unicode2utf8.maxpat
Max Patch
Peter Castine's icon

The thread entitled "extended ascii, wrong values with atoi" ends with my stab at a solution. IMS, factory objects only (not even any Litter Power, which is a bit unusual for me;-)