Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Proposal: > - create a new string layer that does this {en,de}coding > - change the prototypes of PIO_Read to return a STRING* > - change the prototypes of PIO_Write to get a STRING* > - layer push and pop functions for ParrotIO
Done that now for the output side. getstdout P0 # or any PIO push P0, "utf8" # install utf8 layer With this sequence output to stdout is written as UTF8. > - we would need some means to define the default layer > (i.e. which PIOs do utf8 by default, if any) This is still the question. > Strings that don't go through the string layer get a new flag like > encoding_raw_bytes or such denoting a byte encoded buffer. How can input strings be created to contain utf8? Comments welcome, leo