Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Michael Jones
...obviously! it suggests a part of technical life lacking the prefix-decoding property. If things are to EVER be that way generally (the clumpy aggregate way) it would be remarkably better to always have prefix codes or have aggregate "boxing symbols" as wrappers. this notion of a trailing

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread as
>which puts a keycap symbol around the previous character Something about this sentence disturbs me. On Wednesday, October 11, 2017 at 3:36:16 AM UTC-7, Ian Davis wrote: > > > On Wed, 11 Oct 2017, at 11:16 AM, Gianguido Sorà wrote: > > Uhm, so the Replacer sees it as two separate entities, and

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Ian Davis
On Wed, 11 Oct 2017, at 11:16 AM, Gianguido Sorà wrote: > Uhm, so the Replacer sees it as two separate entities, and replaces > the part of the composite that matches one of the cases. Sort of. The emoji is really just the "\xE2\x83\xA3" part (or "\U20e3") which puts a keycap symbol around

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Ian Davis
On Wed, 11 Oct 2017, at 10:33 AM, Ian Davis wrote: > > On Wed, 11 Oct 2017, at 09:57 AM, Gianguido Sorà wrote: >> >> I'm writing a small utility which uses a strings.Replacer to process >> some substitutions in some strings; these strings contains UTF-8 >> characters as well as emojis.>> >>

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Jan Mercl
On Wed, Oct 11, 2017 at 11:34 AM Ian Davis wrote: > At first glance this looks like a bug in strings.Replacer. What bug do you mean? https://play.golang.org/p/0DBwWt2TU9 -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Ian Davis
On Wed, 11 Oct 2017, at 09:57 AM, Gianguido Sorà wrote: > > I'm writing a small utility which uses a strings.Replacer to process > some substitutions in some strings; these strings contains UTF-8 > characters as well as emojis.> > Here you can find a playground with an example: >

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Jan Mercl
On Wed, Oct 11, 2017 at 10:58 AM Gianguido Sorà wrote: WAI: "\x32" == "2" -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to