作者CAPPON (JI3)
看板R_Language
标题[问题] 汇出excel中文出现乱码
时间Fri Mar 3 13:21:16 2017
汇出的excel
中文部分会呈现乱码
这需需在加入什麽code 才可以顺利呈现出来呢?
谢谢
file2=paste("Y:\\",tday,"\\report.xls",sep="")
cat ("<table border=1 ALIGN=center >" , file=file2, fill=F, labels=NULL, app
end=F)
cat ("<tr>" , file=file2 , append = T)
cat("<th bgcolor='#EEE685' rowspan=2><font face='Arial'>应用别</font></th>",
file = file2 , append = T)
cat("<th bgcolor='#EEE685' rowspan=2><font face='Arial'>出货type</font></th>
", file = file2 , append = T)
cat("<th bgcolor='#EEE685' rowspan=2><font face='Arial'>客户</font></th>", f
ile = file2 , append = T)
cat("<th bgcolor='#EEE685' rowspan=2><font face='Arial'>客端保良</font></th>
", file = file2 , append = T)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 223.138.161.143
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1488518479.A.B3B.html
1F:推 shitlock: 编码file2<-file("report.xls", "w", encoding="big5") 03/05 15:33
2F:→ CAPPON: 有时汇出就正常,还是会出现乱码的情况...有解吗? 03/07 16:55