[REBOL] Re: utf8-encode

2002-06-07 Thread Bohdan R. Rau
On Jun 07 at 00:04 RebOldes wrote: > R> nobody has utf8-encoder? > R> probably will have to write one by myself [cut code] Very clever... but it's not utf-8. Don't you think you should translate ISO-2 characters into UTC-2 encoding? ethanak -- To unsubscribe from this list, please send a

[REBOL] Re: utf8-encode

2002-06-07 Thread Christopher Dicely
--- RebOldes <[EMAIL PROTECTED]> wrote: > shift: func [ > "Takes a base-2 binary string and shifts bits" > data [string! binary!] places [integer!] /left > /right > ][ > data: enbase/base data 2 > either right [ > remove/part tail data negate places > data: he

[REBOL] Re: utf8-encode

2002-06-07 Thread Volker Nitsch
Am Freitag, 7. Juni 2002 00:04 schrieb RebOldes: > R> nobody has utf8-encoder? > R> probably will have to write one by myself > > ok... why there is NO native right/left shift function in Rebol?! > because it can be replaced by multiplication/division with powers of 2? is rarely needed, and

[REBOL] Re: utf8-encode

2002-06-06 Thread RebOldes
R> nobody has utf8-encoder? R> probably will have to write one by myself ok... why there is NO native right/left shift function in Rebol?! here is how utf8 works: putwchar(c) { if (c < 0x80) { putchar (c); } else if (c < 0x800) { putchar (0xC0 | c>>6); putchar (0x80 | c & 0