Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 18 May 2006 03:36:46 -0400,    group: microsoft.public.exchange2000.development        back       


One question related to Multi Lingual support.   
Hi all,

I have follwing requirement. When the exchange is running with support
English language my application works fine.

If the exchange is running with Chinese language. if i create the
appointment using OWA my application reads the subject and details in
Chinese. but when i create an appointment using my application and read it
using my application i all the chinese characters are turned in to ??????.
Can somebody tell me what i need to do in my application to make the
things working fine.

I have not much worked on Localization part. Can some body guide me
here..?

Milind
date: Thu, 18 May 2006 03:36:46 -0400   author:   mi_exchange

Re: One question related to Multi Lingual support.   
Hi all,

I forgot to mention that i am using WebDav for interacting with Exchange.

Milind
date: Thu, 18 May 2006 05:58:05 -0400   author:   mi_exchange

Re: One question related to Multi Lingual support.   
What object are you using to do your webdav requests I've found in the past 
the some of the browser objects such as "microsoft.xmlhttp" and 
"Msxml2.XMLHTTP" don't handle the extended character sets . If you use 
another object for example Msxml2.XMLHTTP.4.0 then this may work better for 
you. Also make sure you set the headers to reflect the character set your 
using.

Cheers
Glen


"mi_exchange"  wrote in message 
news:7740d1acf0471967d75b97fec49d7723@localhost.talkaboutsoftware.com...
> Hi all,
>
> I forgot to mention that i am using WebDav for interacting with Exchange.
>
> Milind
>
date: Fri, 19 May 2006 10:20:32 +1000   author:   Glen Scales [MVP]

Re: One question related to Multi Lingual support.   
Hello Glen,

Thanks for your reply. I will see if i am setting the proper value for
Character set with the header.

Thansk,
Milind
date: Mon, 22 May 2006 03:43:10 -0400   author:   mi_exchange

Re: One question related to Multi Lingual support.   
Hello Glen,

I trying it as fallows

PropPatchMethod propPatchMethod = new PropPatchMethod(ItemHref);
String query = "<?xml version="1.0" encoding="utf-8" ?> <g:propertyupdate
xmlns:g="DAV:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
xmlns:cal="urn:schemas:calendar:" xmlns:contacts="urn:schemas:contacts:"
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:header="urn:schemas:mailheader:"
xmlns:mail="urn:schemas:httpmail:"><g:set><g:prop>
<g:contentclass>urn:content-classes:appointment</g:contentclass>
 <e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
 <mail:subject>??????</mail:subject>
 <mail:textdescription>???</mail:textdescription>
 <mail:priority>0</mail:priority>
 <header:to></header:to>
 <header:cc></header:cc>
 <header:bcc></header:bcc>
 <cal:organizer>administrator@ataph.com</cal:organizer><cal:dtstart
dt:dt="dateTime.tz">2006-05-23T14:30:00.00Z</cal:dtstart>
 <cal:dtstamp dt:dt="dateTime.tz">2006-05-23T14:30:00.00Z</cal:dtstamp>
 <cal:dtend dt:dt="dateTime.tz">2006-05-23T15:00:00.00Z</cal:dtend>
 <cal:instancetype dt:dt="int">0</cal:instancetype>
 <cal:busystatus>BUSY</cal:busystatus>
 <cal:meetingstatus>TENTATIVE</cal:meetingstatus>
 <cal:alldayevent dt:dt="boolean">0</cal:alldayevent>
 <cal:responserequested dt:dt="boolean">0</cal:responserequested>
 <cal:timezoneid
dt:dt="int">23</cal:timezoneid><cal:transparent></cal:transparent><cal:location>?????</cal:location>

 <contacts:billinginformation></contacts:billinginformation><e:sensitivity
dt:dt="int">0</e:sensitivity></g:prop></g:set>"

propPatchMethod.setRequestHeader("Content-Type", "text/xml");
propPatchMethod.setRequestHeader("Translate", "f");
propPatchMethod.setRequestHeader("Content-Length",
String.valueOf(query.length()));


int returnCode =
connectionBean.getResource().executeHttpRequestMethod(connectionBean.getResource().retrieveSessionInstance(),
propPatchMethod);

Even when try to set the value of 

propPatchMethod.setRequestHeader("Content-Type", "text/xml;
charset=\"utf-8\"");

Then webdav throws 400 bad request error.

can u gide me where i am wrong. I tried few other combinations also but no
success.I also Tried setting the User-Agent header even then it is not
working.

It will be a great help.

Thanks 
Milind
date: Tue, 23 May 2006 09:52:33 -0400   author:   mi_exchange

Re: One question related to Multi Lingual support.   
I tried using some Kanji with the default .Net sample from the Exchange SDK 
and it worked fine without changing any of the headers I think its really is 
dependant on the object you are using. It looks like you are using some sort 
of Java object to do the post? A 400 bad request points to a malformed XML 
request being received by the server so you really need to look what is 
being sent in the request which may involve using a packet capture to work 
this out. It may also be the java object your trying to use either doesn't 
support sending these type of characters or needs to encoded a certain way 
to work ?

Cheers
Glen

"mi_exchange"  wrote in message 
news:fef764ea4220466db96fa423d0c818a5@localhost.talkaboutsoftware.com...
> Hello Glen,
>
> I trying it as fallows
>
> PropPatchMethod propPatchMethod = new PropPatchMethod(ItemHref);
> String query = "<?xml version="1.0" encoding="utf-8" ?> <g:propertyupdate
> xmlns:g="DAV:"
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:mapi="http://schemas.microsoft.com/mapi/"
> xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> xmlns:cal="urn:schemas:calendar:" xmlns:contacts="urn:schemas:contacts:"
> xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> xmlns:o="urn:schemas-microsoft-com:office:office"
> xmlns:header="urn:schemas:mailheader:"
> xmlns:mail="urn:schemas:httpmail:"><g:set><g:prop>
> <g:contentclass>urn:content-classes:appointment</g:contentclass>
> <e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
> <mail:subject>??????</mail:subject>
> <mail:textdescription>???</mail:textdescription>
> <mail:priority>0</mail:priority>
> <header:to></header:to>
> <header:cc></header:cc>
> <header:bcc></header:bcc>
> <cal:organizer>administrator@ataph.com</cal:organizer><cal:dtstart
> dt:dt="dateTime.tz">2006-05-23T14:30:00.00Z</cal:dtstart>
> <cal:dtstamp dt:dt="dateTime.tz">2006-05-23T14:30:00.00Z</cal:dtstamp>
> <cal:dtend dt:dt="dateTime.tz">2006-05-23T15:00:00.00Z</cal:dtend>
> <cal:instancetype dt:dt="int">0</cal:instancetype>
> <cal:busystatus>BUSY</cal:busystatus>
> <cal:meetingstatus>TENTATIVE</cal:meetingstatus>
> <cal:alldayevent dt:dt="boolean">0</cal:alldayevent>
> <cal:responserequested dt:dt="boolean">0</cal:responserequested>
> <cal:timezoneid
> dt:dt="int">23</cal:timezoneid><cal:transparent></cal:transparent><cal:location>?????</cal:location>
>
> <contacts:billinginformation></contacts:billinginformation><e:sensitivity
> dt:dt="int">0</e:sensitivity></g:prop></g:set>"
>
> propPatchMethod.setRequestHeader("Content-Type", "text/xml");
> propPatchMethod.setRequestHeader("Translate", "f");
> propPatchMethod.setRequestHeader("Content-Length",
> String.valueOf(query.length()));
>
>
> int returnCode =
> connectionBean.getResource().executeHttpRequestMethod(connectionBean.getResource().retrieveSessionInstance(),
> propPatchMethod);
>
> Even when try to set the value of
>
> propPatchMethod.setRequestHeader("Content-Type", "text/xml;
> charset=\"utf-8\"");
>
> Then webdav throws 400 bad request error.
>
> can u gide me where i am wrong. I tried few other combinations also but no
> success.I also Tried setting the User-Agent header even then it is not
> working.
>
> It will be a great help.
>
> Thanks
> Milind
>
>
>
>
>
date: Wed, 24 May 2006 13:14:42 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us