Skip to content

Force UTF8 encoding during writeLines#552

Open
saurfang wants to merge 4 commits into
ramnathv:masterfrom
saurfang:utf8-writelines
Open

Force UTF8 encoding during writeLines#552
saurfang wants to merge 4 commits into
ramnathv:masterfrom
saurfang:utf8-writelines

Conversation

@saurfang

Copy link
Copy Markdown

This should fix #549 where R writes file according to default locale if not otherwise specified. It caused a problem under Windows due to lack of support for UTF8 locale and rCharts assumes everything will be written in UTF8.

Comment thread R/rChartsClass.R Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you open the file() connection here, and close it after writing the text. Otherwise the file() connection is still open after this function exits, and R might show you "Closed 1 unused connections".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It seems rCharts doesn't work well with Chinese

2 participants