localeToCharset()

说明:

This functions aims to find a suitable coding for the locale named, by default the current locale, and if it is a UTF-8 locale a suitable single-byte encoding.
貌似是个返回本地编码的函数

用例:

localeToCharset()

[1] "CP936"

localeToCharset ( locale = Sys.getlocale ( "LC_CTYPE" ) )

[1] "CP936"

你可能感兴趣的:(localeToCharset())