Data export doesn't output Hebrew letters

Posted By Booker Mon 26 Jan 2015
Add to Favorites0
Author Message
Booker
 Posted Mon 26 Jan 2015
Supreme Being

Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)Supreme Being - (2,061 reputation)

Group: Forum Members
Last Active: Tue 27 Jan 2015
Posts: 3, Visits: 24
Hello all,

I have many products named in Hebrew, when I export into spreadsheet each letter becomes a "?"like this ????? ?? ????????? ????
Is there any setting to fix that?
bpaluch
 Posted Tue 5 May 2015
Supreme Being

Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)Supreme Being - (44,070 reputation)

Group: Forum Members
Last Active: Thu 23 Jul 2020
Posts: 70, Visits: 175
Thanks, Paul, for helping me find my way with this one.

In Kartris.vb, WriteToCSV function, change the line with the ASCII encoding

Dim data() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(strData.ToString)

to this

Dim data() As Byte = System.Text.UTF8Encoding.UTF8.GetBytes(strData.ToString)

When exporting, choose SAVE, then open the file in notepad. You will see the HEbrew chars.

(If you open in Excel, it will be messed up)
Paul
 Posted Tue 5 May 2015
große Käse

große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)große Käse - (491,740 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
Can you try changing the content type line to this

        Current.Response.AddHeader("Content-Type", "application/Excel; charset=utf-8")
This sets the header on the file, with the charset there it may be that Excel understands better how to open this directly.


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top