http://www.perlmonks.org?node_id=840875


in reply to Re: encoding question
in thread encoding question

I don't really like that, sorry.

If someone else will have to look on the code, (and just let's suppose you'll have more such characters following each other in the source,... ), 'reading' what's supposed to be there will be a chore.

Instead, I'd emphasize in comments how the source code should be viewed _and_ what exactly should be seen.

Your solution makes it easier for the machines, but harder for humans.

I like it much more the other way round.


Krambambuli
---

Replies are listed 'Best First'.
Re^3: encoding question
by moritz (Cardinal) on May 20, 2010 at 09:00 UTC
    Instead, I'd emphasize in comments how the source code should be viewed

    Two forms of such "comments" can actually be readable by programs:

    # for perl: use utf8; # at the end, for my favourite editor: # vim: fileencoding=utf-8
    Perl 6 - links to (nearly) everything that is Perl 6.
Re^3: encoding question
by JavaFan (Canon) on May 20, 2010 at 13:38 UTC
    Your solution makes it easier for the machines
    But you aren't getting the correct results. And since there's an additional cut-and-paste step involved, it's hard to debug from a website how your source is encoded.