Escape a comma in a CSV table?
Hi...
My data contains commas, and I can't use XML. Is there any way I can escape the comma so it will appear inside the grid?
Shawn Kelly
November 13,
(function(){
new AW.CSV.Table;
var x1 = /(([^,\t\"]*)|\"(([^\"]|\"\")+)\")(,|\t|$)/g;
var x2 = /\"\"/g;
var s1 = "$2$3\x01";
var s2 = "\"";
var s3 = "\x01";
AW.CSV.Table.prototype.getData = function(c, r){
if (!this._data[r]){
if (!this._rows[r]){return ""}
this._data[r] = this._rows[r].replace(x1, s1).replace(x2, s2).split(s3);
}
return this._data[r][c] || "";
}
})();
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021