Can't search entrys using FullTextQuery with Japanese two-byte
characters.

JapaneseHolidayCalendar
<http://www.google.com/calendar/feeds/ja.japanese%23holiday
%40group.v.calendar.google.com/private/full>
have a entry like this.

        <entry>
                <id>http://www.google.com/calendar/feeds/ja.japanese%23holiday
%40group.v.calendar.google.com/private/full/h
%402aa194fe22f9000c2ae9d78979c110cf351c00a9</id>
                <published>2009-12-02T08:14:24.000Z</published>
                <updated>2009-12-02T08:14:24.000Z</updated>
                <category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/g/2005#event"/>
                <title type="text">秋分の日</title>
                <content type="text"/>
                <link href="http://www.google.com/calendar/event?
eid=aEAyYWExOTRmZTIyZjkwMDBjMmFlOWQ3ODk3OWMxMTBjZjM1MWMwMGE5IGphLmphcGFuZXNlI2hvbGlkYXlAdg"
rel="alternate" title="alternate" type="text/html"/>
                <link href="http://www.google.com/calendar/feeds/ja.japanese
%23holiday%40group.v.calendar.google.com/private/full/h
%402aa194fe22f9000c2ae9d78979c110cf351c00a9" rel="self"
type="application/atom+xml"/>
                <author>
                        <name>日本の祝日</name>
                </author>
                <gd:comments>
                        <gd:feedLink 
href="http://www.google.com/calendar/feeds/ja.japanese
%23holiday%40group.v.calendar.google.com/private/full/h
%402aa194fe22f9000c2ae9d78979c110cf351c00a9/comments"/>
                </gd:comments>
                <gd:eventStatus value="http://schemas.google.com/g/
2005#event.confirmed"/>
                <gd:where/>
                <gd:who email="ja.japanese#[email protected]"
rel="http://schemas.google.com/g/2005#event.organizer"; valueString="日本の
祝日"/>
                <gd:when endTime="2010-09-24" startTime="2010-09-23"/>
                <gd:transparency value="http://schemas.google.com/g/
2005#event.opaque"/>
                <gd:visibility 
value="http://schemas.google.com/g/2005#event.public"/
>
                <gCal:anyoneCanAddSelf value="false"/>
                <gCal:guestsCanInviteOthers value="true"/>
                <gCal:guestsCanModify value="false"/>
                <gCal:guestsCanSeeGuests value="true"/>
                <gCal:sequence value="1"/>
                <gCal:uid
value="h...@[email protected]"/>
        </entry>

I tried to get the entry with FullTextQuery.

public class getHoliday{
        public static void main(String[] args){

                CalendarService myService = new CalendarService(APPNAME);
                myService.setUserCredentials(login, pass);

                try{

                URL feedUrl = new URL("http://www.google.com/calendar/feeds/
ja.japanese%23holiday%40group.v.calendar.google.com/private/full");

                CalendarQuery myQuery = new CalendarQuery(feedUrl);

                myQuery.setFullTextQuery("秋分");

                calendareventfeed = myService.query(myQuery,
CalendarEventFeed.class);
                }catch (Exception e){
                        e.printStackTrace();
                }
                System.out.println("ResultCnt:" + 
calendareventfeed.getEntries().size
());
                Iterator<CalendarEventEntry> iterator = 
calendareventfeed.getEntries
().iterator();
                CalendarEventEntry ca;
                while(iterator.hasNext()){
                        ca = (CalendarEventEntry)iterator.next();
                        System.out.println(ca.getTitle().getPlainText());
                        if (ca.getRecurrence() != null){
                                
System.out.println(ca.getRecurrence().getValue().toString());
                        }
                }
        }

}

but I did'nt get the entry.
Could you help?

--

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://groups.google.com/group/google-calendar-help-dataapi?hl=en.


Reply via email to