- ta.write.csv() Encoding Limitation When Exporting to Windows - Aster R

Teradata Aster® R User GuideUpdate 3

Aster R
December 2017
Programming Reference
User Guide

When exporting data to CSV files using the ta.write.csv() function, some multi-byte characters will be converted to octal format in Windows. For example, Latin characters in CHS locale are converted from "Â" to "<U+00C2>". This behavior is similar to the behavior of the native R write.csv() function.

To work around this limitation when using ta.pull() to export data in Windows with ANSI locale/encoding, add the encoding argument to specify which encoding will be output; otherwise, UTF-8 is used as the default, which will not be supported in the Windows CMD shell. For example:

# export Chinese characters in CHS locale
ta.pull(tadf, encoding="GB2312")