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

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

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 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?

Answer*

Draft saved
Draft discarded
Cancel

lang-js

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