Visual WebGui Cloud Application Platform
 
  Forum  Commercial Foru...  Commercial Foru...  Download file name does not support Portuguese characters
Previous Previous
 
Next Next
New Post 2/20/2009 3:00 AM
  jayhobbs
1350 posts
1st Level Poster




Re: Download file name does not support Portuguese characters  

Hi Rui,

Using FF 3.06 it gets the correct file name

IE 7 gets Contestação

There maybe some browser settings in IE that screw up the characters

I hope this helps

Jay

 

 

 
New Post 2/20/2009 8:16 AM
  ruifrazao
459 posts
www.e-grou.com
2nd Level Poster


Re: Download file name does not support Portuguese characters  

Hi Jay,

It is true, this problem just happen in IE.

But I don't believe that is just a browser settings in IE, because this just happen when I download a file from my application. I made a simple test like send an email with an attach file to my hotmail account, and when I download that file from hotmail, the problem do not happen.

Rui

 

 
New Post 2/20/2009 12:02 PM
  palli
6012 posts
1st Level Poster




Re: Download file name does not support Portuguese characters  

Hi Rui,

This is a typical encoding problem, which often differs between browsers like this. The filename presented in FF3.06 is correct, as Jay points out. The filename in IE on the other hand is a utf-8 encoded filename shown in another encoding. This means that somehow the encoding for your download component is using another encoding that your site, and another encoding than your site thinks it is using... or so it seems.

So, the question is what components/procedures are you using for your file downloads?

Maybe you could post here the portion from your code that does the actual download, so we could test it against the newer VWG versions and see if this has either been fixed or can be adjusted ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/20/2009 3:33 PM
  palli
6012 posts
1st Level Poster




Re: Download file name does not support Portuguese characters  

Hi Rui,

I have been surfing the net in a search for a solution for you. Apparently this is a part of the constant debate between browser for standards on how to interpret headers with regards to encoding. FireFox and IE obviously interpret the headers differently in this case. It all winds around the HTML header: Content-Disposition: attachment; filename=xxxxx.

According to what I have seen, then the default for filename encoding is supposed to be utf-8. I am not sure that is the case, as in this case IE is interpreting the filename differently, so I assume that IE is interpreting in non-utf8, which most likely is your native char set (portugese then). When you read filenames from your filesystem that contain non-extended characters, then they can be represented in non-utf8 characters (single byte). When you get filenames like the one you have problems with, then on your filesystem they will be interpreted with utf-8 chars (two byte or more), and that's when you have the problem. Firefox obviously concludes correctly that it's an utf-8 filename and makes the correct choice, but IE does not.

You might try adding one more directive to your globalization in web.config. Try adding responseHeaderEncoding='utf-8' and see if that makes a difference.

During my search, I did find some articles that might help you. I didn't try them out, but the one from Code Project (here) looks ineresting. Other articles I found are here, here and here.

Hope this helps. Please let me know if and how you solve.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/20/2009 3:51 PM
  palli
6012 posts
1st Level Poster




Re: Download file name does not support Portuguese characters  

Hi again,

Take a look at this one here too !

I can only say wow !

It really sounds like we might consider us lucky that this is working at all :-)

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Download file name does not support Portuguese characters
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners