[PD-dev] float handling in [binfile] for UTF-8 handling

Martin Peach martin.peach at sympatico.ca
Tue Jan 31 00:36:16 CET 2012


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



More information about the Pd-dev mailing list