From efe9a4361083b14ce195f3902476f7d54c3805a3 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 31 Jan 2017 13:16:31 -0600 Subject: [PATCH] Docs: Add note about Excel & `output_encoding`. See #1353 --- docs/example-widget-output.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/example-widget-output.html b/docs/example-widget-output.html index d65c2f59..315613f9 100644 --- a/docs/example-widget-output.html +++ b/docs/example-widget-output.html @@ -347,6 +347,7 @@ table.tablesorter tbody tr.even.checked td {
  • Set the separator to a comma (,).
  • Save the file with a csv extension, then load it into Excel.
  • Or, save the file with a xls extension; but when loading the file in Excel, you will likely see a message stating that the file is corrupt. Continue loading and you will see the expected data placed into each cell.
  • +
  • Note including a BOM in the output_encoding option is no longer required!
  • To copy the data into Excel @@ -887,6 +888,7 @@ line,value1,value2,value3
    The method used to download has been completely changed. The downloads still need an encoding setting, but this option is now set to a default of
    output_encoding : 'data:application/octet-stream;charset=utf8,'
    + Note The trailing comma is important!
    The information below is no longer relavant:
    @@ -895,7 +897,7 @@ line,value1,value2,value3 // NO BOM : 'data:text/csv;charset=utf8,' // With BOM : 'data:text/csv;charset=utf8,%EF%BB%BF' // WIN 1252 : 'data:text/csv;charset=windows-1252,' // ANSI (subset of ISO-8859-1) -output_encoding : 'data:text/csv;charset=utf8,'Note The commas are important! +output_encoding : 'data:text/csv;charset=utf8,'
    @@ -921,7 +923,8 @@ output_encoding : 'data:text/csv;charset=utf8,'Note If you need to change the carriage return and/or the tab replacement strings, modify them as follows (changed in v2.21.2):
    -
    $.tablesorter.output.replaceCR = '\x0d\x0a';
    +				
    // these are the default settings
    +$.tablesorter.output.replaceCR = '\x0d\x0a';
     $.tablesorter.output.replaceTab = '\x09';