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

Teradata Aster® R User GuideUpdate 3

prodname
Aster R
vrm_release
7.00.02.01
created_date
December 2017
category
Programming Reference
User Guide
featnum
B700-1033-700K

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")