GithubHelp home page GithubHelp logo

Comments (4)

Aymkdn avatar Aymkdn commented on June 12, 2024 1

Hi

Do you have the code you're using please?

from sharepointplus.

danbete avatar danbete commented on June 12, 2024

hi, im trying export any table with hebrew using

<script>

var tableID = "ReportGrid";
var FileName = "Report";
var LibraryName = "Documents";

function exportXLS (){
  // get all the table
 // var tableHTML = $("#"+tableID)[0].outerHTML;
  var cont = exportTableToCSV($("#"+tableID))
  $SP().createFile({
  content:cont,
  filename:FileName+".xls",
  library:LibraryName ,
  url:"http://my-sp-site",
  after:function(fileURL) {
// download the file
    window.location.href=fileURL;
  }
});
}

</script>

table to test

נסיון Lastname Age
Jill בדיקה חמישים
Eve שם משפחה גיל
עוד בדיקה Doe בדיקה

from sharepointplus.

Aymkdn avatar Aymkdn commented on June 12, 2024

You can try to open your filename.xls into a text editor and to check the content.... The code you use is just sending the HTML code into a .xls file, and then Excel will open the HTML Table structure and convert it to Excel. Nothing else.
That could be a charset issue with Excel that doesn't read correctly the HTML table. In that case you can try to send a full HTML page with a meta charset instead of just sending your <table>, as shown here: http://stackoverflow.com/a/25730640/1134119

The other solution could be to use ExcelPlus — this helper will create a true Excel file XLSX, and that could resolve the charset issue.

from sharepointplus.

Aymkdn avatar Aymkdn commented on June 12, 2024

Please keep me updated about it. Thanks.

from sharepointplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.