Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: replacement for deprecated encoding pragma

by LanX (Sage)
on Jul 19, 2021 at 13:44 UTC ( #11135164=note: print w/replies, xml ) Need Help??


in reply to replacement for deprecated encoding pragma

please edit your post and put your sample HTML code inside <code> tags, not <pre> tags.

Otherwise it's destroying the whole formatting of this thread.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: replacement for deprecated encoding pragma
by igoryonya (Pilgrim) on Jul 20, 2021 at 03:07 UTC
    I did it in pre, because it's not a part of the source code, but the generated result, as it should look.
    I tried to changed it to code and became gibberish, not what I intended.
    So, I changed it back to pre, as the purpose of for it to be displayed, as it looks on the result output, but not show the internal code of it.
      Well obviously was your table not finished and you have some illegal tags too.

      It's pretty hard to read and destroys the formatting.

      Deleting your post is another option to consider...

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      PS: The less readable a post is the less answers it'll get

Re^2: replacement for deprecated encoding pragma
by Anonymous Monk on Jul 20, 2021 at 08:13 UTC
    PerlMonks is assumed by the browsers to be using the Latin-1 encoding. Anything entered into text entry fields but not fitting into Latin-1 is encoded into HTML entities. They work in the <pre> tags, but <code> tags are processed specially not to let anything HTML-looking be interpreted as HTML, so they are double-encoded on output. The result is that
    привет
    works, but &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; doesn't. So it goes.
        You see, changing pre to code defeated the purpose of demonstrating the difference.
        In code view, you can't see the way it supposed to look.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-09-27 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?