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

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software

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