Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Encoding Decoding on multiple formats RFC

by kcott (Chancellor)
on Sep 21, 2017 at 09:28 UTC ( #1199813=note: print w/replies, xml ) Need Help??


in reply to Re^2: Encoding Decoding on multiple formats RFC
in thread Encoding Decoding on multiple formats RFC

G'day Thanos,

"... using the <pre></pre> tags to encode the UTF-8 data."

That's quite correct to do that!

You also need to replace special characters with entities:

ForReplaceWith
HTML&&amp;
<&lt;
>&gt;
PerlMonks[&#91;
]&#93;

[The "HTML" ones are generic (i.e. not just for this site); The "PerlMonks" ones are specific to this site to prevent automatic link generation.]

These appear under the textarea when you're composing your message:

"You may need to use entities for some characters, as follows. ..."

Unfortunately, that list is no longer there when previewing, nor when editing after node creation.

— Ken

Replies are listed 'Best First'.
Re^4: Encoding Decoding on multiple formats RFC
by thanos1983 (Vicar) on Sep 21, 2017 at 13:31 UTC

    Hello kcott

    Thanks for the tip, it worked perfectly.

    Best Regards, Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199813]
help
Chatterbox?
[marto]: hardware maintenance ++

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-04-24 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?