Mark Dootson <mark.doot...@znix.com> writes: > Hi, > > On 29/04/2013 20:06, Johan Vromans wrote: > >> I'd say this is the wrong approach. The solution is to adjust the >> WXSTRING_PUT macro to check for the utf8 flag and handle accordingly. > > That's exactly what it does, unless I've misunderstood.
If it did, the explicit utf8::upgrade would not be necessary. I'm not an XS expert, so I asked some of my friends who are. They suggested to use SvPVutf8_force in WXSTRING_PUT. Does that sound sensible? -- Johan