Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: getting html characters to align

by Anonymous Monk
on Mar 09, 2019 at 13:42 UTC ( [id://1231086]=note: print w/replies, xml ) Need Help??


in reply to Re^2: getting html characters to align
in thread getting html characters to align

It seems like you are only missing <meta charset="UTF-8"> in the <head> part of your HTML. That is, take the HTML you currently generate, place it in <body>...</body> tags, then buryplace the body between <html>...</html>. Finally, add <head><meta charset="UTF-8"></head> before the body (but still inside html).

Browsers tend to assume latin1 encoding when it hasn't been explicitly declared, so what you see is the result of decoding UTF-8-encoded text as Latin-1. Pages of your website have this tag, so they get decoded properly.

Replies are listed 'Best First'.
Re^4: getting html characters to align
by Aldebaran (Curate) on Mar 11, 2019 at 20:42 UTC

    This shows the latest version of this material. Discussion continues:

    Cheers,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-24 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found