Plain "c" in ASCII is indistinguishable from the "c" in UTF-8.
I thought that the utf flag would distinguish strings that you've asked to be utf8 encoded; from those you haven't. Even if they both contain the same 7-bit codes.
If that's not the case; perl's Unicode support is even more broken than I thought.
In fact, all the 7-bit ASCII are part of the UTF-8.
And if the non-Unicode strings contain 8-bit chars?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] |
And if the non-Unicode strings contain 8-bit chars?
That's what I tried to demostrate with the encode, but apparently failed. The utf flag is an internal thing, you shouldn't care about it. If you're getting strings of mixed encodings from the data, fix the data or the input routines to unify the encoding.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
| [reply] [Watch: Dir/Any] [d/l] [select] |
fix the data
Right!
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] |