cancel
Showing results for 
Search instead for 
Did you mean: 

problem reading an application parameter

Former Member
0 Kudos

Hello, SDN!

I wanna retrieve an application parameter, but i have some troubles with cyrillic encoding:

String param = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameterValues("myparam");

param does not contain right data,

if i print param with IWDMessageManager, its displays some squares instead of the text.

I have tried to change encoding with help of

URLDecoder.decode(department, "UTF-8")

So, somebody can help?

Accepted Solutions (0)

Answers (1)

Answers (1)

vmadhuvarshi_
Contributor
0 Kudos

Nikita,

See [this blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6603] [original link is broken] [original link is broken] [original link is broken];. Search for 'UTF-8'.

"I encounter problems whith the charset of the downloaded data. Serverside the data is encoded as UTF-8 and I write it to the client using WDResource and IWDInputStream. On the client (e.g. in the browser) special characters (Umlaute) are not displayed corretly. Setting the view mode to "UTF-8" by hand in the browser fixes the view."

This may help.

Vishwas.

Former Member
0 Kudos

I'm not using wdResource, i need to get url_parameters (application parameters) from my application, i have troubles with cyrillic parameter values.

Edited by: Nikita Kravtsov on Sep 19, 2008 11:26 AM

Former Member
0 Kudos

Hi,

May be of use for decoding

http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html

Regards

Ayyapparaj

Former Member
0 Kudos

It doesnt solve my problem. But, i have found some solution:

if i type cyrillic in my application parameters (WebDynpro Iview), its work fine.

If an url parameter, then its didnt work.

So, imho i think what parameters by method POST are work, and parameters by method GET are not work correctly.

Thanks, for your wasted time.