TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kalyani Shevale
NA
3.2k
704.9k
when data convert in Excel that time marathi data changed
Aug 26 2019 1:41 AM
I have table export in Excel file that time Marathi data is automatically converted in another language but I want this Marathi data as it in Excel file column.
please check below my code.
please help me.
function
fnExcelReport() {
var
tab_text =
" "
;
var
textRange;
var
j = 0;
tab = document.getElementById(
'headerTable'
);
// id of table
for
(j = 0 ; j < tab.rows.length ; j++) {
tab_text = tab_text + tab.rows[j].innerHTML +
""
;
//tab_text=tab_text+"";
}
tab_text = tab_text +
""
;
tab_text = tab_text.replace(/]*>|<\/A>/g,
""
);
//remove if u want links in your table
tab_text = tab_text.replace(/]*>/gi,
""
);
// remove if u want images in your table
tab_text = tab_text.replace(/]*>|<\/input>/gi,
""
);
// reomves input params
var
ua = window.navigator.userAgent;
var
msie = ua.indexOf(
"MSIE "
);
if
(msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
// If Internet Explorer
{
txtArea1.document.open(
"txt/html"
,
"replace"
);
txtArea1.document.write(tab_text);
txtArea1.document.close();
txtArea1.focus();
sa = txtArea1.document.execCommand(
"SaveAs"
,
true
,
"Say Thanks to MIPL.xls"
);
}
else
//other browser not tested on IE 11
sa = window.open(
'data:application/vnd.ms-excel,'
+ encodeURIComponent(tab_text));
return
(sa);
}
Reply
Answers (
1
)
Can an Option in a Select tag carry multiple values?
set null in empty cell in jspdf autotable