question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello. Is there a way to declare <meta charset="UTF-8" />? Also, why meta function accepts code block, like a container-tag? Actual signature:

meta(name: String?, content: String?, block: kotlinx.html.META.() -> kotlin.Unit)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cy6erGn0mcommented, Nov 7, 2017

Btw, this should be better than unsafe

meta { charset = "utf-8" }

however I also added charset parameter to the builder function as well

0reactions
Miha-x64commented, Nov 3, 2017

Can’t reproduce this? It was edited two days ago, that was my fault…

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML meta charset Attribute - W3Schools
The charset attribute specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character ......
Read more >
Why is < meta charset="utf-8" > important?
The meta charset element is only about the characters that you can enter in the HTML file. If you have <meta charset="ascii">, it...
Read more >
<meta>: The metadata element - HTML - MDN Web Docs
If the charset attribute is set, the <meta> element is a charset declaration, giving the character encoding in which the document is encoded ......
Read more >
HTML meta charset Attribute - Dofactory
The charset attribute on a meta tag specifies to the browser what character encoding to use for the page. Browsers uses this information...
Read more >
What is <meta charset=“utf-8”/> and why do we use it? - Medium
Meta : It is an HTML tag that contains metadata about a webpage. · Charset: It is an attribute that tells your browser...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found