Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate charset in format_html() output #4

Closed
nalimilan opened this issue Jan 21, 2016 · 1 comment
Closed

Indicate charset in format_html() output #4

nalimilan opened this issue Jan 21, 2016 · 1 comment
Assignees
Labels

Comments

@nalimilan
Copy link

format_html currently does not output any information regarding character encoding used in the output. In that case, ISO-8859-1 is assumed. But R strings are typically in UTF-8. This means any non-ASCII characters are not interpreted correctly by web browsers.

This can easily be fixed by adding the following output to the HTML:

 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 

Cf. http://www.w3schools.com/html/html_charset.asp

@melff
Copy link
Owner

melff commented Jan 24, 2016

Thanks for the suggestion. However, format_html is intended to produce code that can be included in other HTML documents. Adding a meta tag would likely make this impossible.

@melff melff added the wontfix label Jan 24, 2016
@melff melff self-assigned this Jan 24, 2016
@melff melff closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants