i using output widget of tablesorter table csv (for excel). table has no problems special chars. if export data output fine. if use download option special characters & shown & (seen in notepad++) excel decides separate there ;
any help? update: http://jsfiddle.net/abknm/6503/
thanks!
ok, ended adding new callback function output_formatcontent*. use follows (demo):
output_formatcontent: function (config, widgetoptions, data) { // data.isheader (boolean) = true if processing header cell // data.$cell = jquery object of cell being processed // data.content = processed cell content // (spaces trimmed, quotes added/replaced, etc) // ********** // use data.$cell.html() original cell content return data.content.replace(/&/g, '&'); } if want replace html codes, check out mathias bynens he work follows:
output_formatcontent : function( c, wo, data ) { // replace html shortcut codes // (e.g. 'foo © bar ≠ baz 𝌆 qux' becomes 'foo © bar ≠ baz 𝌆 qux' ) return he.decode( data.content ); } * note: new output widget callback available in master branch of tablesorter repository. included in next update.
Comments
Post a Comment