Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Can I force the VMware Web Service to encode in UTF-8 before sending to my client?

$
0
0

I've run into an axis problem where the axis client (as used in the vSphere Web Services SDK) expects the response from the server to be utf-8 encoded, but that is not always the case.  In my example, certain Japanese characters being put in the notes field of a VM (config.annotation property) are not being encoded in utf-8 before being sent back to my client and everything in the response gets lost when axis blows up.

 

So, can I force (by setting a particular session locale, or another way) the VMware Web Service to actually encode everything in UTF-8 before sending the response?

 

Do i simply need to stipulate a requirement that my application will not work when non utf-8 locales are used on the server?

 

I'm new to digging into the whole locale/encoding stuff, so if i'm not making sense with something here, let me know.

 

Thanks


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>