Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

added 2 characters in body
Source Link
TonalDev
  • 583
  • 1
  • 8
  • 22

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

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

What am i doing wrong?

Source Link
TonalDev
  • 583
  • 1
  • 8
  • 22

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

What am i doing wrong?

lang-js

AltStyle によって変換されたページ (->オリジナル) /