aspose file tools*
The moose likes Web Services and the fly likes Umlaute probleme by Axis Call invoke(Object array) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Umlaute probleme by Axis Call invoke(Object array)" Watch "Umlaute probleme by Axis Call invoke(Object array)" New topic
Author

Umlaute probleme by Axis Call invoke(Object array)

sindy lee
Greenhorn

Joined: Aug 05, 2010
Posts: 14
Hi,everyone,

i have this problem since 3 days, i'll be crasy!

so at firstz i create the "initoperationDesc()":



than create call:


So at the end i want to get my string from call.invoke():


So please help, what did i false?
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
UTF-8 is the default encoding for XML, so it could be ommitted.

Are you sure the characters are encoded incorrectly or is it possible it is "only" an output problem. Some consoles may not be able to present the characters correctly.
sindy lee
Greenhorn

Joined: Aug 05, 2010
Posts: 14
Thanks for the Reply,

"printing out" is just the way, what i test the encoded string correct or not, because at the end i want to show this characters in a dialog, and now all data are correct, only these umlaute displayed crasy.

otherwise how can i know, wheater it encoded realy correct or not?
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
You could either in inspect the bytes you receive to see what you get exactly or you save them to a file in a completely controlled way i.e. set the encoding on every conversion from/to String and on every file operation/reader/writer. Then you could just check with an encoding-aware editor.

"Only" the umlauts are crazy is not very helpful. If all other data is latin alphabet without any special characters then most likely a problem will never occur because they have the same code point (ASCII position) in virtually every encoding. The problem still lurks for the time you get some unexpected characters.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Umlaute probleme by Axis Call invoke(Object array)