Problem url decoding with mutated vowels (Umlaute??)

2008-07-14 Thread Marc Eckart
Hi,

we have an action which we call with url paramters from other applications.

But now we found out, that we have problems with mutated wowels like äöü.

Instead of  tls-hölter we get tls-hölter in the parameterMap of  the
servletRequest (I debugged).
I assume that the parameters are decoded with iso ISO-8859-1 instead
of utf-8 or otherwise.

Is there an option to tell struts2 which charset it should use to decode?

The url looks like this:
http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000userId=xxxpageTitle=BlareturnUrl=http://localhost:9080?methodToCall=loadWithCustDetailssimpleSearch=tls-h%C3%B6lter

We call the application running on tomcat from an application running
on websphere 6.1.

Thanks in advance...

Best regards,
Marc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem url decoding with mutated vowels (Umlaute??)

2008-07-14 Thread Piero Sartini
Hello,

you can try the following settings in struts.xml:
constant name=struts.i18n.encoding value=UTF-8/
constant name=struts.locale value=de_DE/

Please let me know if this resolves your issue.

Piero

Am Montag, 14. Juli 2008 15:25:14 schrieb Marc Eckart:
 Hi,

 we have an action which we call with url paramters from other applications.

 But now we found out, that we have problems with mutated wowels like äöü.

 Instead of  tls-hölter we get tls-hölter in the parameterMap of  the
 servletRequest (I debugged).
 I assume that the parameters are decoded with iso ISO-8859-1 instead
 of utf-8 or otherwise.

 Is there an option to tell struts2 which charset it should use to decode?

 The url looks like this:
 http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000user
Id=xxxpageTitle=BlareturnUrl=http://localhost:9080?methodToCall=loadWithCu
stDetailssimpleSearch=tls-h%C3%B6lter

 We call the application running on tomcat from an application running
 on websphere 6.1.

 Thanks in advance...

 Best regards,
 Marc

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem url decoding with mutated vowels (Umlaute??)

2008-07-14 Thread Paweł Wielgus
Hi all,
maybe it's related with tomcat (or another container You use),
One should add URIEncoding=utf-8 in connector like this:

Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443
   URIEncoding=utf-8/

Hope this helps.

Best greetings,
Paweł Wielgus.


2008/7/14 Piero Sartini [EMAIL PROTECTED]:
 Hello,

 you can try the following settings in struts.xml:
constant name=struts.i18n.encoding value=UTF-8/
constant name=struts.locale value=de_DE/

 Please let me know if this resolves your issue.

Piero

 Am Montag, 14. Juli 2008 15:25:14 schrieb Marc Eckart:
 Hi,

 we have an action which we call with url paramters from other applications.

 But now we found out, that we have problems with mutated wowels like äöü.

 Instead of  tls-hölter we get tls-hölter in the parameterMap of  the
 servletRequest (I debugged).
 I assume that the parameters are decoded with iso ISO-8859-1 instead
 of utf-8 or otherwise.

 Is there an option to tell struts2 which charset it should use to decode?

 The url looks like this:
 http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000user
Id=xxxpageTitle=BlareturnUrl=http://localhost:9080?methodToCall=loadWithCu
stDetailssimpleSearch=tls-h%C3%B6lter

 We call the application running on tomcat from an application running
 on websphere 6.1.

 Thanks in advance...

 Best regards,
 Marc

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]