Here is the code showing the problem:
myPath = getwd()
cat(\"abcd\", append = T, file =paste(myPath,\"temp1.html\", sep = \"\\\\\")) # This is fine
cat(\"
Your code is a bit redundant. Is temp1.txt
on line 5 a typo (.html
)? Anyway, perhaps you should set charset within tag.
Take this as an example:
<%
cat("abcd")
cat("
")
cat("שלום")
cat("שלום")
(x <- iconv("שלום", from = "CP1252", to = "UTF8") )
cat(x)
-%>
It is a brew
code, so if you go ahead and brew
it, you'll get correct response. Long story short, the keyword was charset.