in reply to Re^4: Mugged by UTF8, this CANNOT be right
in thread Mugged by UTF8, this CANNOT be right

And there's my point. For web programming there's more checking+encoding+decoding than there is actual programming logic.

Perl is an incredible language, my exclusive language for 15 years now, but when it comes to the global language requirements that most web programming ultimately requires perhaps Perl is presently just not suited to that task.

Maybe I'm just bitchy and irritated right now, but I think of a 10 column X 100 row table of data, that's 1000 data points, and each needs to be checked, decoded, encoded, numerous times. It should not be like this, the future of programming is globally connected and Perl needs to deal with this fact a lot better.

Which leads me to ask: Is there a programming language that easily handles Unicode either automatically or with a flag in the program that when set tells everything else to use Unicode, or is everyone else writing PHP/Python/ASP/Java/etc. as frustrated?

Tosh
  • Comment on Re^5: Mugged by UTF8, this CANNOT be right

Replies are listed 'Best First'.
Re^6: Mugged by UTF8, this CANNOT be right
by ikegami (Patriarch) on Jan 27, 2011 at 00:38 UTC

    Perl is an incredible language, my exclusive language for 15 years now, but when it comes to the global language requirements that most web programming ultimately requires perhaps Perl is presently just not suited to that task.

    None of those tasks are Perl-specific.

    and each needs to be checked, decoded, encoded, numerous times.

    None need to be "checked". If you don't want to use NULLs, don't use NULLs. If you want to use NULLs, don't complain that you're using NULLs.

    As for your claim that each needs to be decoded and encoded multiple times, it's non-sense. Everything needs to be decoded and encoded exactly once, and that can usually be done automatically.

    Which leads me to ask: Is there a programming language that easily handles Unicode either automatically

    Unicode is not an encoding.

    Your problem has to do with dealing the encodings of various data sources. You have to do that no matter what language unless it places limits on your data sources and on your outputs.

      Which leads me to ask: Is there a programming language that easily handles Unicode
      Unicode is not an encoding.

      Nor does the OP suggest in what you're replying to that it is.

      The answer is no, there is no language that makes it easy. This is the fault of the fucking cretins who decided that having eleventy million different encodings of the same text was a great idea, and that the encoding that should be most common should be really complicated.

        Nor does the OP suggest in what you're replying to that it is.

        It's not clear what he suggests since he didn't say what he meant. He's definitely not talking about Unicode. Perl is excellent at handling Unicode and gets better with every version. The problems he is having relate to encodings, and that has nothing to do with Unicode.