develooper Front page | perl.perl5.porters | Postings from July 2017

Re: [perl #131685] Rename utf8::is_utf8() (and other functions)

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
July 18, 2017 07:18
Subject:
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
20170718091834.1e4eaf38@pc09.procura.nl
On Tue, 18 Jul 2017 03:13:40 -0400, Dan Book <grinnz@gmail.com> wrote:

> On Tue, Jul 18, 2017 at 3:04 AM, H.Merijn Brand <h.m.brand@xs4all.nl> wrote:
> >
> >
> > I like this. What I miss here is a small example of how to guarantee
> > preventing double encoding/decoding, as I think that is what is
> > function is most often (erroneously) used for.  
> 
> This isn't something that you can guarantee. It always depends on knowing
> how you get your input. When people don't understand this they look for the
> magic bullet that is_utf8 appears to be, but it is not.

My point exactly. Just have a piece of text that tells the user why it
isn't and what the best alternative *could* be.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About