Nektar-io / report-template

Report Template
0 stars 0 forks source link

render_report: encoding issues in windows (åäö) #3

Open reinholdsson opened 10 years ago

reinholdsson commented 10 years ago

It doesn't seem work with åäö in windows.

! Package textcomp Error: Symbol \textcurrency not provided by
(textcomp)                font family pplj in TS1 encoding.
(textcomp)                Default family used instead.

See the textcomp package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.93 \subsection{Antal inkomna ärenden}
                                          \label{antal-inkomna-uxe3renden}
!  ==> Fatal error occurred, no output PDF file produced!
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Swedish_Sweden.1252  LC_CTYPE=Swedish_Sweden.1252    LC_MONETARY=Swedish_Sweden.1252 LC_NUMERIC=C                   
[5] LC_TIME=Swedish_Sweden.1252    

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

other attached packages:
 [1] brew_1.0-6         reshape2_1.2.2     plyr_1.8           xtable_1.7-1       sas7bdat_0.3       chron_2.3-44       format.tables_0.1  ggplot2_0.9.3.1   
 [9] reportTemplate_1.0 yaml_2.1.7         pander_0.3.8       pmtools_0.1        markdown_0.6.3     knitr_1.5          stringr_0.6.2      RCurl_1.95-4.1    
[17] bitops_1.0-6       RJSONIO_1.0-3      httr_0.2           whisker_0.3-2      RODBC_1.3-8        devtools_1.3       data.table_1.8.10 

loaded via a namespace (and not attached):
 [1] colorspace_1.2-4   dichromat_2.0-0    digest_0.6.3       evaluate_0.4.7     formatR_0.9        grid_3.0.1         gtable_0.1.2       labeling_0.2      
 [9] MASS_7.3-29        memoise_0.1        munsell_0.4.2      parallel_3.0.1     proto_0.3-10       RColorBrewer_1.0-5 scales_0.2.3      
reinholdsson commented 10 years ago

The issue is when there are åäö in the report template. It does work if the data contains it.

reinholdsson commented 10 years ago
l.93 åä
             ö text
!  ==> Fatal error occurred, no output PDF file produced!
reinholdsson commented 10 years ago

Template: https://github.com/Nektar-io/projectX/blob/master/report/tufte-handout.template Config: https://github.com/Nektar-io/projectX/blob/master/report/tufte.yml

reinholdsson commented 10 years ago

It works if the file is saved as ISO-8859-1 (system default) instead of UTF-8. We should add an option for encoding in the render_report.