On Jan 30, 2012, at 6:36 PM, Martin Peach wrote: > On 2012-01-30 17:45, Hans-Christoph Steiner wrote: >> >> The current pdstring format of lists of bytes seems to be working out pretty >> well. I just had a thought, it would be nice to be able to write Unicode >> text out as UTF-8 files using [binfile]. I think currently it only accepts >> byte values of 0-255. What if it converted values> 255 in the UTF-8 style? >> Or should that be a separate [utf8file]? I suppose the advantage of >> [utf8file] would be to make an easy conversion to [utf16file] and >> [utf32file]. >> > > [binfile] can work with any kind of file. It seems simpler to have filters > that could convert between lists of bytes and lists of utf character codes, > the way [slipenc] and [slipdec] will operate on any stream of bytes. Then > they wouldn't be tied to [binfile], and binfile wouldn't get all bloated with > obscure variations. > Martin
That does make more sense, so something like [bytes2utf8], etc. .hc ---------------------------------------------------------------------------- Access to computers should be unlimited and total. - the hacker ethic _______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev