降价时不显示非英语字符

时间:2015-11-02 15:10:32

标签: r markdown

我在R(.Rmd扩展名)的markdown中用波兰语写一份报告。不幸的是,我无法在ąę输出中显示像htmlpdf等字符。

我的会话信息:

> sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=Polish_Poland.1250  LC_CTYPE=Polish_Poland.1250    LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C                   LC_TIME=Polish_Poland.1250    

attached base packages:
[1] tools     stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] markdown_0.7.7 httr_1.0.0     knitr_1.10.5  

loaded via a namespace (and not attached):
 [1] R6_2.1.0         magrittr_1.5     formatR_1.2      htmltools_0.2.6  rstudioapi_0.3.1 curl_0.9.1       yaml_2.1.13      stringi_0.5-5    rmarkdown_0.7   
[10] jsonlite_0.9.16  stringr_1.0.0    digest_0.6.8     evaluate_0.7 

一些可重复的例子

---
title: "Review"
author: "My name"
output:
  pdf_document:
    latex_engine: xelatex
geometry: margin=2cm
---

## Wstęp

Media społecznościowe ...

所有特殊抛光字符都显示为相应的英文字符,因此输出就像这样

Wstep

Mecia spolecznosciowe ...

任何帮助表示赞赏!

0 个答案:

没有答案