Mac text editor for encoding chinese

broken image
broken image

If you do not use RStudio, there is one more thing to keep in mind: when you save a file with UTF-8, you should make sure not to include the byte order mark (BOM). For example, if you use the RStudio IDE, you can click the menu File -> Save with Encoding to (re)save a file with the UTF-8 encoding: Text EditorsĪ modern text editor should allow you to save a text file with a specified encoding. Note a Shiny app may not contain all of these files, but all of them must be encoded in UTF-8 if they exist. For the sake of consistency and portability, Shiny requires the character encoding of all its components to be UTF-8, which include ui.R, server.R, global.R, DESCRIPTION, and/or README.md. However, Windows does not have a single consistent locale or native character encoding, which makes it tricky to support multi-byte characters there. Linux and Mac OS X users normally do not need to worry about character encodings or non-ASCII characters, and they can basically ignore this article, since their system locale is often UTF-8 based. Since Shiny v0.10.1, we have added support for multi-byte characters in Shiny apps on Windows.