in reply to Re^3: Mixed Unicode and ANSI string comparisons?
in thread Mixed Unicode and ANSI string comparisons?
Because without open perl would try to downgrade "$_: ", and warn that it can't do it for some strings ("wide character ...")
Hmm, I guess I got confused by docs for open, made me think it did binmode STDOUT, ':encoding(utf8)'; instead of binmode STDOUT, ':utf8'; and/or that the two were the same, that both did encode, so the strings would be corrupted/double encoded,
perlunitut explains they :utf8 and :encoding(:utf8) aren't the same
But looking at source of open leads me to think it does :utf8 even if you write :encoding(:utf8)
yeah, unicrap headache *sigh* :D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Mixed Unicode and ANSI string comparisons? ( binmode utf8 and :encoding(utf8))
by Anonymous Monk on Dec 15, 2015 at 02:55 UTC | |
by Anonymous Monk on Dec 15, 2015 at 03:33 UTC | |
by Anonymous Monk on Dec 15, 2015 at 03:38 UTC |