[ruby-talk:444453] codepoints

Hi!

How to reverse str.codepoints?

how can I convert Unicode to utf8
e.g: cp1 = [0xf0, 0x9f, 0x8f, 0xb3]; cp2 = [0xe2, 0x82, 0xac] #=> 0x20ac
Could someone add UTF-8 to pack/unpack ?
# seems it outputs UTF16 instead as UTF8 as doku says!

How to show the US-Flag (star-flag as one graphical symbol), composed
of [0x1f1fa, 0x1f1f8] ?
# How to compose UTF-symbols consisting of more codepoints?

···

______________________________________________
ruby-talk mailing list -- ruby-talk@ml.ruby-lang.org
To unsubscribe send an email to ruby-talk-leave@ml.ruby-lang.org
ruby-talk info -- Info | ruby-talk@ml.ruby-lang.org - ml.ruby-lang.org