[CSVUtil] Default encoding for load

[CSVUtil] Default encoding for load

  
Forge Component
(13)
Published on 24 Sep by Wei Zhu
13 votes
Published on 24 Sep by Wei Zhu
Hi,

First of all, nice work. The component looks very nice.

Was looking at this component and noticed the default encoding is shift_jis.
Would it be possible to have a default of utf8? Think it would be better in most cases, since utf8 is more common.
Most users won't notice it until they have problems. It would also be nice to have a description on that attributte with some of the possible values it supports as examples.

Regards,
João Rosado
Hi

I had modified the default encode from shift_jis to utf-8.

Regards
Wei


Can you expose the other config settings as well, for example the seperator used.
Now we are stuck with the comma(,)  (which it should be), but we are having csv-files with the semi-colon (;)

oh, and it seems it doesn't support ansi-encoding?

Hi

I had uploaded a new version that support used-defined seperator.
You can use FieldDelmiter attribute in CSVLoadConfig when call LoadCSV2RecordList action.

About encoding, the default value is utf8, but you can specify other encode such us-ascii in CSVLoadConfig.
For .NET, the available encodings is as following
http://msdn.microsoft.com/library/system.text.encoding.getencodings(v=vs.90).aspx

Regards
Wei