This is a migrated thread and some comments may be shown as answers.

UTF8 Encoding?

9 Answers 483 Views
ZipLibrary
This is a migrated thread and some comments may be shown as answers.
Per
Top achievements
Rank 1
Per asked on 16 Aug 2013, 12:02 PM
Hi!

I'm trying to add files to a zip package and my filename contains swedish characters (ÅÄÖåäö).
This characters are converted into \+' .

Something with the encoding of my filenames isn't right.
How can I fix this?

Regards
Per

9 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Aug 2013, 07:24 AM
Hi Per,

Thank you for contacting us.

I tried to reproduce the described issue but to no avail. I am sending you a simple example which uses RadZip library and add files into a zip package which contains Swedish characters. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Per
Top achievements
Rank 1
answered on 01 Sep 2013, 07:31 PM
Hi and thank you for your reply!

I tried your sample and I get the same encoding problem with your code as I get with mine..
Check attached screenshoots.
(We are running Windows 7 Swedish version 32 bit OS.)

Most of the other .net zip package components has the option to set the encoding, so I got suprised when I didn't find this option in yours.
Is there some other way to set the encoding for the file names?

Regards
Per



0
Radoslav
Telerik team
answered on 04 Sep 2013, 07:15 AM
Hello Per,

Could you please try the example on different browser than IE, for example Firefox or Chrome.  I assume that the IE does not have installed any language packs and that’s way the file name has encoding problems.  Also in order to works as expected you need to install Swedish language pack for IE. You can download it from here:
http://www.microsoft.com/en-us/download/details.aspx?id=1944

Please give the suggestions try and let me know if they help you.  

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Per
Top achievements
Rank 1
answered on 04 Sep 2013, 04:22 PM
Hi I don't think that IE is the problem here. IE isn't affecting the .zip file other then it's download name. Not the content off the archive. The file names inside the archive are also wrong. The .zip file is created on the server by your component running inside a web application on IIS 7.0. Since the OS is Swedish, IIS is probably running under Swedish System Default settings (code page, numerical formats etc). I think this is where the problem is occurring. Probably when the files are read and added to the archive. Regards Per
0
Radoslav
Telerik team
answered on 09 Sep 2013, 10:50 AM
Hello Per,

After additional investigations it seems that the described behavior is an issue into the RadZipLibrary. I forwarded it to our developers for further investigation. Please excuse us for the temporary inconvenience.  If you need further assistance, do not hesitate to contact us again.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Per
Top achievements
Rank 1
answered on 11 Jun 2014, 07:52 AM
Hi!
Do you have any ETA on when this bug will be fixed?

Regards,
Per
0
Radoslav
Telerik team
answered on 13 Jun 2014, 11:03 AM
Hi Per,

In the Q2 2014 (it will be available for downloads in the middle of the next week) the  ZIP library has been redesigned from scratch for better cross-platform compatibility (.NET, Silverlight, Windows Store Apps, Windows Phone) and better support of the standards and better functionality. The new zip library will be distributed in a separate dll. The old one included into the Telerik.Web.UI.dll will be obsoleted and removed after two releases.
I am sending you a simple example with a trial version of the zip library. Please check it out and let me know if it helps you.
Also more information about new zip library you can find here:
http://www.telerik.com/help/silverlight/radziplibrary-overview.html

Looking forward for your reply.

Regards,
Radoslav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Per
Top achievements
Rank 1
answered on 03 Jul 2015, 09:16 AM

So I finaly got around to start implimenting zip functionallity in our Product :)
Your exa

mple was running fine the last time I checked but now it seems like ZipPackage is obsolete and I have to use ZipArchive.

So I changed to this code:

using (var zip = new Telerik.Windows.Zip.ZipArchive(outputStream, Telerik.Windows.Zip.ZipArchiveMode.Create, true, System.Text.Encoding.UTF8))

 

 

But now I have the exact same problem again :(
By the looks of it, Encoding can be set but it doesn't change anything. Bug?

 

0
Radoslav
Telerik team
answered on 06 Jul 2015, 11:12 AM
Hello Per,

I tried to reproduce the problem with the latest Q2 2015 dlls but with no avail. I am sending you the example with the latest version of dll. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Regards,
Radoslav
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ZipLibrary
Asked by
Per
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Per
Top achievements
Rank 1
Share this question
or