in reply to Re^7: Database vs XML output representation of two-byte UTF-8 character
in thread Database vs XML output representation of two-byte UTF-8 character
RTFM then.
huh? I asked what you meant.
LOL. It looks like Latin-1 and quacks like Latin-1, but it's not Latin-1. Yeah, it's just 'byte-packed subset of Unicode'.
huh? What are you talking about?
How about you 'fix' Perl's documentation, and then start arguing... It even talks about 'Unicode' and 'binary' strings (gasp).
You can start here. "Perl will assume that your binary string was encoded with ISO-8859-1" is indeed completely wrong. Concatenation does know or care what the string is.
$ perl -MEncode -E' $x = chr(0x2660); $y = encode($ARGV[0], chr(0xC9)); say sprintf "%vX.%vX %vX", $x, $y, $x.$y; ' iso-latin-1 2660.C9 2660.C9 $ perl -MEncode -E' $x = chr(0x2660); $y = encode($ARGV[0], chr(0xC9)); say sprintf "%vX.%vX %vX", $x, $y, $x.$y; ' UTF-8 2660.C3.89 2660.C3.89
Is that an error that perl -wE 'my $x = chr(0x00A9); say $x does one thing, and perl -wE 'my $y = chr(0x2660); say $y' does something else?
No, Perl "doing something else" (telling you you made an error) when you provide a bad input is not an error.
chr should be consistent,
huh? chr always returns a string consisting of the specified character.
So you're not even disagreeing. You just hate the word 'Latin-1'
huh? What are you talking about?!? No, I hate that you're saying your errors are errors in Perl. I hate that you are spreading misinformation about how Perl works. I hate that you're confusing people with issues that aren't even related to theirs. The OP's problem had nothing to do with internal storage formats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Database vs XML output representation of two-byte UTF-8 character (koolaid)
by tye (Sage) on Sep 09, 2014 at 16:42 UTC |