简体   繁体   English

如何有效地从 R 到 CSV 到 HTML 截断(ö、é 等)?

[英]How to truncate (ö, é etc.) efficiently from R to CSV to HTML?

I create some data in R (using R studio) that I export as a csv.我在 R(使用 R studio)中创建了一些数据,然后将其导出为 csv。 This cdv will then be uploaded to HTML.这个 cdv 然后将被上传到 HTML。

However, I always get bugs with symbols like é and ö and ä.但是,我总是遇到带有 é 和 ö 和 ä 等符号的错误。

Is there a way I can "code" accordingly in my R file so in the HTML will look right, ie readable like é/ä/ö/ü....有没有办法可以在我的 R 文件中相应地“编码”,以便在 HTML 中看起来正确,即可读性类似于 é/ä/ö/ü....

Thank you!谢谢!

You need to encode special characters, eg instead of ä , you need to put ä您需要对特殊字符进行编码,例如,您需要输入ä而不是ä ä . .

You can find the full list here: https://dev.w3.org/html5/html-author/charref您可以在此处找到完整列表: https : //dev.w3.org/html5/html-author/charref

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 R - 检查 HTML 的格式标签(粗体、斜体等) - R - checking HTML for formatting tags (bold, italics etc.) 如何裁剪多个HTML段落标签以使其适合使用CSS3或JavaScript(文本溢出,截断等)的显式尺寸的框? - How do you crop multiple HTML paragraph tags to fit into an explicitly sized box with CSS3 or JavaScript (text-overflow, truncate, etc.)? 如何从内容提交中删除恶意HTML(XXS等)? - How do I strip malicious HTML (XXS etc.) from content submissions? 渲染时如何高效截断包含html标签的文本? - How to efficiently truncate the text that contain html tags in it when rendering? Javascript、CSS &amp; HTML:如何使用 ZC0BB2196426022E8AEDF9A5B6D34FD4 等交换图像? - Javascript, CSS & HTML: How to swap images using onclick etc.? 如何在WebBrowser中单击到html元素。 (没有ID等) - How to click to an html element in WebBrowser. (Without ID, etc.) How to extract pure text from html without any additional (SCRIPT, STYLE, CSS, XML, HTML etc. tags) using python - How to extract pure text from html without any additional (SCRIPT, STYLE, CSS, XML, HTML etc. tags) using python 如何在不给页面充电的情况下自动更新 html 内容(来自数据库)(F5,<meta...> 等)并且没有点击事件? - How automatically update an html content (from database) without recharge the page (F5, <meta...>, etc.) and without a click event? 在网页上显示来自txt,html等的外部文本(托管在云上) - display external text from txt, html etc. (hosted on cloud) on web page 如何截断html中的文本 - How to truncate a text in a html
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM