32
Views
2
Comments
Solved
[Data Extractor] app does not recognize Hebrew language in table
data-extractor
Web icon
Forge asset by Carlos Sousa
Application Type
Traditional Web

Hi Team :-),

I have table with Hebrew text and when I download the csv file with this table instead of text I see "??????????".

How can I config the app so it will recognize the correct text? In my understanding the correct encoding has to be configured like UTF8, but I do not know where I could configure it.

Thanks


UserImage.jpg
Marco Cristino
Solution

Hi Alexander,

I've the same issue with portuguese text. I think that you could solve it making a small adjustment in DataExtractor Extension.

In TableManager Class, Extract Method change line 120 from:

                        //Write file line

                        gZipStream.Write(Encoding.ASCII.GetBytes(fileLine), 0, fileLine.Length);

to 

                        //Write file line

                        //gZipStream.Write(Encoding.ASCII.GetBytes(fileLine), 0, fileLine.Length);

                        byte[] inputBytes = Encoding.UTF8.GetBytes(fileLine);

                        gZipStream.Write(inputBytes, 0, inputBytes.Length);


Hope this helps,

Marco


2023-06-01 16-37-58
Alexander Galperin

Hi Marco,

It Worked !!! :-)

Thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.