"Frédéric Chastagnol" <fch.DeleteThis@tetragtatitato.ch> schreef in bericht
news:433d526c$1_1@news.cybercity.ch...
> > Why not simply change the filename? Accents on characters are a bad
> > idea in URLs/filenames. Just don't use them
> The files are automatically generated and the file name is used as label
> showed to the customer.
> In German, for example, ü may be replaced with ue.
> But german people like to see umlaut instead of an other character.
Call it part of their culture, that happens all over the world:
ñ in Spain, AEcombinated for Sweden, ç in France
Your problem boils down to cross-platform, cros-vendor and
cross-global-region incompatibilities in binary representing of
none-US-ASCII characters in URLs and filenames. Trying to ment what may have
been broken in so widely varying combination of factors, is undoubtedly a
wasted effort.
> Automatically replacing ue with ü in the label isn't possible. ue
> isn't allways ü.
Try it the other way around:
In your JSP application generate a filename apart from the label by just
replacing the 'decorated' characters in the label with their undecorated
counterparts. Be aware of the chance two lables traslate to one filename ...
HansH
>> Stay informed about: Problem with german umlaut in URL for file download