in reply to Re^4: Mixed Unicode and ANSI string comparisons?
in thread Mixed Unicode and ANSI string comparisons?
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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Mixed Unicode and ANSI string comparisons?
by BrowserUk (Patriarch) on Dec 15, 2015 at 10:36 UTC |