I have a ruby script that I wrote that handles the authentication and does a
post of the raw xml.
When I do this, Google gives me a more or less helpful response in cases
where there is a problem.

I think though, that problem isn't with Google, but somewhere in your tool
chain. When I look at the xml file that you posted, I see the same errors as
you do. If I save the file to my desktop, and still see the error, and the
unknown unicode character in Strandmøllen. If I open that file in my text
editor and save it as UTF-8, the character appears correctly. Originally the
editor thinks that the file is Latin-1, although I'm not sure that is
helpful.

You have shown two files: http://www.planyourdive.com/google_api_problem.txtand
http://www.planyourdive.com/google_api_problem.xml. The first displays
correctly, the second doesn't. What's the difference?

Ray

On Sun, Feb 22, 2009 at 10:24 AM, BlackToe
<[email protected]>wrote:

>
> What are you using to post the request to Google API?  I'm using
> the .NET HttpWebRequest and writing the XML content using a
> StreamWriter.  I've even tried specifying UTF-8 encoding when writing
> the content, with no luck.  I've logged my XML to a file, and the "ø"
> character appears correctly in the log.
>
> Interestingly, the XML parser in IE does not consider my XML valid,
> reporting the "ø" an invalid character (open
> http://www.planyourdive.com/google_api_problem.xml
> in IE to see).  Firefox will display it, but renders the "ø" as an
> unknown character.
>
> My guess is that something is munging the "ø" between me and Google,
> such that Google considers the XML invalid, but I can't figure out
> what would be doing that.  Is there any way to see what Google
> received on their end?
>
> On Feb 21, 9:50 pm, Ray Baxter <[email protected]> wrote:
> > Oh, and the "ø" character appears correctly in the first event, but in
> the
> > second it appears as it did in your posting, as an unknown unicode
> > character.
> > Ray
> >
> > On Sat, Feb 21, 2009 at 9:48 PM, Ray Baxter <[email protected]>
> wrote:
> > > I created an event using your xml. Here it is:
> >
> > >http://www.google.com/calendar/event?eid=Y24xbmhtbjJmNTRjbXBmMnBncjhu.
> ..
> >
> > > here's a tiny urlhttp://tinyurl.com/c9lrwn
> >
> > > You see that the "ø" character appears without problem. I'm not
> otherwise
> > > doing anything special.
> >
> > > By the way, I took the data from your previous post, changed the date
> to
> > > the 22nd so we could see what was happening, and removed some line
> breaks
> > > and stray html and was also able to create an event:
> >
> > >http://www.google.com/calendar/event?eid=ZnMxdGRldmdpZmRwYWhhdmRqYmQw.
> ..
> >
> > > Hope that helps.
> >
> > > Ray
> >
> > > On Sat, Feb 21, 2009 at 7:39 PM, BlackToe <
> [email protected]
> > > > wrote:
> >
> > >> You bet.  I posted an XML file at
> > >>http://www.planyourdive.com/google_api_problem.txt.
> >
> > >> On Feb 20, 6:38 pm, Trevor Johns <[email protected]> wrote:
> > >> > On Fri, Feb 20, 2009 at 8:51 AM, BlackToe
> >
> > >> > <[email protected]> wrote:
> >
> > >> > > It seems like my posts take forever to show up on this thread.
> > >> > > Anyway...
> >
> > >> > That's because I have to moderate everything manually. This group
> > >> > would get a lot of spam otherwise. :(
> >
> > >> > > I added an XML declaration with UTF-8 encoding, and still got the
> same
> > >> > > problem.  Here's the XML (with some irrelevant info removed).  The
> > >> > > offending character is the "o" with a slash through it in
> > >> > > "Strandmollen".
> >
> > >> > > <?xml version="1.0" encoding="UTF-8"?>
> > >> > > <entry xmlns="http://www.w3.org/2005/Atom"; xmlns:gd="http://
> > >> > > schemas.google.com/g/2005">
> > >> > >  <category scheme="http://schemas.google.com/g/2005#kind";
> > >> > > term="http://schemas.google.com/g/2005#event"; />
> > >> > >  <title type="text">Strandm llen</title>
> > >> > >  <content type="html">If you make changes to this event,
> > >> > > PlanYourDive.com will no longer be able to sync it.&lt;/p&gt;</
> > >> > > content>
> > >> > >  <gd:transparency value="http://schemas.google.com/g/
> > >> > > 2005#event.opaque" />
> > >> > >  <gd:eventStatus value="http://schemas.google.com/g/
> > >> > > 2005#event.confirmed" />
> > >> > >  <gd:where valueString="Strandm llen" />
> > >> > >  <gd:when startTime="2009-02-23T20:00:00.000Z"
> > >> > > endTime="2009-02-23T20:00:00.000Z" />
> > >> > > </entry>
> >
> > >> > Those characters are getting munged by either SMTP or Google Groups.
> > >> > Would you try posting that information in a .txt file hosted
> somewhere
> > >> > off-list (then posting the URL) so I can try to reproduce this on my
> > >> > end?
> >
> > >> > --
> > >> > Trevor Johns
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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