CSV - Windows-1250

Stimulsoft Reports.WEB discussion
Post Reply
petr.pavlis
Posts: 27
Joined: Sun May 15, 2011 4:16 am

CSV - Windows-1250

Post by petr.pavlis »

Hi,

I try to save CSV file with Windows-1250 (Central European (Windows)) encoding, but I'm not able to choose this option in export settings.

Are you able to add this option to next release?

Petr
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: CSV - Windows-1250

Post by HighAley »

Hello.

We have added support of new encodings.
Please, check our next prerelease build on April 19.

Thank you.
petr.pavlis
Posts: 27
Joined: Sun May 15, 2011 4:16 am

Re: CSV - Windows-1250

Post by petr.pavlis »

Hello.

I have prerelease build on April 19, but there are the same encodings still.

Do you have some new information about support of Windows-1250 encoding?

Petr
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: CSV - Windows-1250

Post by HighAley »

Hello.

Here is a Windows-1250 encoding.
CsvExportEncoding.png
CsvExportEncoding.png (26.35 KiB) Viewed 7458 times
Thank you.
petr.pavlis
Posts: 27
Joined: Sun May 15, 2011 4:16 am

Re: CSV - Windows-1250

Post by petr.pavlis »

Hello,

I downloaded a file SW_2013.04.19.zip from your web and I found there DLL files version 2013.2.1601.0.

No Central European (Windows) encoding is there.
Stimulsoft encoding.png
Stimulsoft encoding.png (4.57 KiB) Viewed 7439 times
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: CSV - Windows-1250

Post by HighAley »

Hello.

The encoding names are taken from .NET Framework by encoding code. So it can differ from our screen-shot.
In you case it's 'Central European (ISO)'.

Thank you.
petr.pavlis
Posts: 27
Joined: Sun May 15, 2011 4:16 am

Re: CSV - Windows-1250

Post by petr.pavlis »

Hello.

I don't think it is so. Central European (ISO) - ISO-8859-2 is not the same as Central Europen (Windows) - Windows-1250.

http://www.charset.org/charactersets.ph ... iso-8859-2
http://www.charset.org/charactersets.ph ... ndows-1250

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: CSV - Windows-1250

Post by HighAley »

Hello.

Here is our code:

Code: Select all

list = new Encoding[]
    {
     Encoding.Default,
     Encoding.ASCII,
     Encoding.BigEndianUnicode,
     Encoding.Unicode,
     Encoding.UTF7,
     Encoding.UTF8,
     Encoding.GetEncoding(1250),
     Encoding.GetEncoding(1251),
     Encoding.GetEncoding(1252),
     Encoding.GetEncoding(1253),
     Encoding.GetEncoding(1254),
     Encoding.GetEncoding(1255),
     Encoding.GetEncoding(1256)
}

for (int index = 0; index < encodings.Length; index++)
   {
    names[index] = encodings[index].EncodingName;
   }
Could you check this code on your system? Which encoding it will use? ISO or Windows?

Thank you.
petr.pavlis
Posts: 27
Joined: Sun May 15, 2011 4:16 am

Re: CSV - Windows-1250

Post by petr.pavlis »

Hello,

I tried your code on my computer and I saw 1250 encoding with tile „Central European (Windows)“ there. But I’m not able to find this encoding in save dialog still.

I have 2 text files for you. "Central European (ISO) - iso-8859-2.txt" file was saved with “Central European (ISO)” encoding from Stimulsoft Reports.Web. To create "Central European (Windows) - windows-1250.txt" file I used Notepad on my computer. You are able to see that files are not the same, because there are the difference between Central European Windows and ISO encoding.

Can you tell me, why I’m not able to see „Central European (Windows)“ option on my computer?

Thank you,

Petr
Attachments
Encoding.zip
(366 Bytes) Downloaded 394 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: CSV - Windows-1250

Post by HighAley »

Hello.

You didn't write which viewer do you use. So we made an improvement in our main product.
We will try to improve both Web Viewers to our next prerelease build.

Thank you.
Post Reply