I have a page that functions as a cognitive test for a study i'm doing.
The JS file outputs a CSV file with a detailed results of the tests.
Some of the text is in Hebrew and the CSV shows gibberish in Excel.
I tried the following method:
var csvContent = "data:text/csv;charset=utf-8,";
But i get the same result:
׳©׳—׳•׳ ̈ ׳¡׳’׳•׳ gray
׳©׳—׳•׳ ̈ ׳TM׳ ̈׳•׳§ yellow
׳©׳—׳•׳ ̈ ׳׳"׳•׳ pink
׳׳₪׳•׳ ̈ ׳׳₪׳•׳ ̈ purple
׳TM׳ ̈׳•׳§ ×ばつ׳•׳ #FE642E
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ red
׳׳₪׳•׳ ̈ ׳©׳—׳•׳ ̈ pink
׳׳₪׳•׳ ̈ ×ばつ׳•׳ gray
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ purple
׳׳"׳•׳ ׳׳₪׳•׳ ̈ pink
What am i doing wrong?
I have a page that functions as a cognitive test for a study i'm doing.
The JS file outputs a CSV file with a detailed results of the tests.
Some of the text is in Hebrew and the CSV shows gibberish.
I tried the following method:
var csvContent = "data:text/csv;charset=utf-8,";
But i get the same result:
׳©׳—׳•׳ ̈ ׳¡׳’׳•׳ gray
׳©׳—׳•׳ ̈ ׳TM׳ ̈׳•׳§ yellow
׳©׳—׳•׳ ̈ ׳׳"׳•׳ pink
׳׳₪׳•׳ ̈ ׳׳₪׳•׳ ̈ purple
׳TM׳ ̈׳•׳§ ×ばつ׳•׳ #FE642E
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ red
׳׳₪׳•׳ ̈ ׳©׳—׳•׳ ̈ pink
׳׳₪׳•׳ ̈ ×ばつ׳•׳ gray
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ purple
׳׳"׳•׳ ׳׳₪׳•׳ ̈ pink
- The whole code on JSFiddle
What am i doing wrong?
I have a page that functions as a cognitive test for a study i'm doing.
The JS file outputs a CSV file with a detailed results of the tests.
Some of the text is in Hebrew and the CSV shows gibberish in Excel.
I tried the following method:
var csvContent = "data:text/csv;charset=utf-8,";
But i get the same result:
׳©׳—׳•׳ ̈ ׳¡׳’׳•׳ gray
׳©׳—׳•׳ ̈ ׳TM׳ ̈׳•׳§ yellow
׳©׳—׳•׳ ̈ ׳׳"׳•׳ pink
׳׳₪׳•׳ ̈ ׳׳₪׳•׳ ̈ purple
׳TM׳ ̈׳•׳§ ×ばつ׳•׳ #FE642E
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ red
׳׳₪׳•׳ ̈ ׳©׳—׳•׳ ̈ pink
׳׳₪׳•׳ ̈ ×ばつ׳•׳ gray
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ purple
׳׳"׳•׳ ׳׳₪׳•׳ ̈ pink
- The whole code on JSFiddle
What am i doing wrong?
UTF-8 csv encoding
I have a page that functions as a cognitive test for a study i'm doing.
The JS file outputs a CSV file with a detailed results of the tests.
Some of the text is in Hebrew and the CSV shows gibberish.
I tried the following method:
var csvContent = "data:text/csv;charset=utf-8,";
But i get the same result:
׳©׳—׳•׳ ̈ ׳¡׳’׳•׳ gray
׳©׳—׳•׳ ̈ ׳TM׳ ̈׳•׳§ yellow
׳©׳—׳•׳ ̈ ׳׳"׳•׳ pink
׳׳₪׳•׳ ̈ ׳׳₪׳•׳ ̈ purple
׳TM׳ ̈׳•׳§ ×ばつ׳•׳ #FE642E
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ red
׳׳₪׳•׳ ̈ ׳©׳—׳•׳ ̈ pink
׳׳₪׳•׳ ̈ ×ばつ׳•׳ gray
׳TM׳ ̈׳•׳§ ׳¦׳"׳•׳‘ purple
׳׳"׳•׳ ׳׳₪׳•׳ ̈ pink
- The whole code on JSFiddle
What am i doing wrong?