I'm trying to create event with non-english character(Korean) in JSON-C 
format and end up posting event detail with urlencoded data.

when I send POST request with non-urlencoded JSON string like below, my 
calendar page won't show detail(just displaying "loading..." forever)

03-01 12:20:23.705: DEBUG/SimpleHttpRequest(32125): POST  body : 
{"data":{"transparency":"opaque","title":"test","details":"테스트
","location":"Android","status":"confirmed","when":[{"start":"2011-03-01T12:20:23+09:00","end":"2011-03-02T00:00:00+09:00"}]}}


so I urlencoded the JSON string with URLEncoder library and sent POST 
request again like below

03-01 12:25:38.545: DEBUG/SimpleHttpRequest(32175): POST  body : 
{"data":{"transparency":"opaque","title":"test","details":"
%ED%85%8C%EC%8A%A4%ED%8A%B8
","location":"Android","status":"confirmed","when":[{"start":"2011-03-01T12:25:38+09:00","end":"2011-03-02T00:00:00+09:00"}]}}



now I can manage to see it's detail on my calendar but it is not decoded as 
normal string. it displays detail as below.

%ED%85%8C%EC%8A%A4%ED%8A%B8

Here's the request header for your information.

03-01 12:25:38.555: DEBUG/SimpleHttpRequest(32175): Headers : GData-Version 
= 2
03-01 12:25:38.555: DEBUG/SimpleHttpRequest(32175): Headers : Content-Type = 
application/json; charset=UTF-8
03-01 12:25:38.555: DEBUG/SimpleHttpRequest(32175): Headers : Authorization 
= GoogleLogin auth=DQAAAL4AAABtk0gvtERhvlTCbg...........cnage15l6Uxo

Have anyone got this problem before?

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to