any non-php solutions? I am developing Portuguese-language apps and I
know I am going to run into the same problem. I have a couple ideas to
try out...

-C


On Feb 14, 12:33 pm, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
wrote:
> Thanks for posting your solution Mike!  I'm sure it will come in handy for
> developers working with non-English languages.
>
> ~Arne
>
> 2008/2/14 Mike Digital Egg <[EMAIL PROTECTED]>:
>
> > Ok so it looks like I have found a solution which is working
> > consistently.
>
> > I found this article:
> >http://www.seopher.com/articles/html_character_encoding_with_php_made...
>
> > And used this function to escape words with special characters:
>
> > $mystring = mb_convert_encoding($mystring, 'HTML-ENTITIES', 'UTF-8');
>
> > Hope this helps anyone else who is struggling with special characters
>
> > čau
>
> > Mike
>
> > On Feb 14, 11:55 am, Mike Digital Egg <[EMAIL PROTECTED]>
> > wrote:
> > > Hi,
>
> > > OK so I thought it had been fixed but the problem was when I escaped
> > > the characters with htmlentities('word') the app worked consistently
> > > but special characters were showing up incorrectly. So I tried adding
> > > htmlentities('word',null,'UTF-8'), this works on my Google Gadget but
> > > it has caused my Orkut app to start giving the "Malformed XML
> > > document." error again!
>
> > > Anyone got any experience dealing with special  characters in Orkut?
>
> > > Cheers
>
> > > Mike
>
> > > On Feb 13, 8:19 pm, Mike Digital Egg <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Arne,
>
> > > > Looks like you were spot on, I am using special language characters
> > > > and had not escaped them, I wrapper them in htmlentities and it seems
> > > > to have worked.
>
> > > > Well spotted.
>
> > > > Cheers
>
> > > > Mike
>
> > > > On Feb 13, 8:11 pm, Mike Digital Egg <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi Arne,
>
> > > > > OK thanks for that. Any chance you could point out which characters?
>
> > > > > Cheers
>
> > > > > Mike
>
> > > > > On Feb 13, 8:01 pm, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
> > > > > wrote:
>
> > > > > > Hi Mike,
>
> > > > > >    I'm seeing some characters in your XML that aren't being
> > escaped to html
> > > > > > entities.  Could you try escaping them before rendering the
> > gadget?  I
> > > > > > believe that this is causing Orkut to return the error you are
> > seeing.
>
> > > > > > ~Arne
>
> > > > > > On Feb 13, 2008 10:35 AM, Mike Digital Egg <
> > [EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi Arne,
>
> > > > > > > Sorry should have done that before I guess, forgot that most
> > people on
> > > > > > > here are developers and would be able to access it (doh)
>
> >http://sandbox.orkut.com/Application.aspx?uid=1555033657840345806&app...
>
> > > > > > > Thanks for your help.
>
> > > > > > > Mike
>
> > > > > > > On Feb 13, 6:51 pm, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]
>
> > > > > > > wrote:
> > > > > > > > Hi Mike,
>
> > > > > > > >    Could you post a link to the gadget that is showing the
> > problem?  It
> > > > > > > > would be very useful to help us see where the problem lies.
>
> > > > > > > > Thanks,
> > > > > > > > ~Arne
>
> > > > > > > > On Feb 13, 2008 5:57 AM, Mike Digital Egg <
> > [EMAIL PROTECTED]>
> > > > > > > wrote:
>
> > > > > > > > > Anyone got any other ideas? It is becoming really
> > frustrating to test
> > > > > > > > > changes when I have to refresh 10 times to see the change!
>
> > > > > > > > > Cheers
>
> > > > > > > > > Mike
>
> > > > > > > > > On Feb 13, 1:46 pm, Mike Digital Egg <
> > [EMAIL PROTECTED]> wrote:
> > > > > > > > > > Hi Jelena,
>
> > > > > > > > > > Yes I am using bpc=1, the strange thing is that it loads
> > sometimes
> > > > > > > and
> > > > > > > > > > not others even with no changes to the code.
>
> > > > > > > > > > Mike
>
> > > > > > > > > > On Feb 13, 1:43 pm, Jelena Kolokotronis <
> > [EMAIL PROTECTED]>
> > > > > > > > > > wrote:
>
> > > > > > > > > > > Are you using bpc=1? Maybe it's old xml orkut tries to
> > load.
>
> > > > > > > > > > > And I'm getting Server Error again now...
>
> > > > > > > > > > > Jelena
>
> > > > > > > > > > > Mike Digital Egg wrote:
> > > > > > > > > > > > Hi,
>
> > > > > > > > > > > > I am intermittently getting the following error:
>
> > > > > > > > > > > > MALFORMED_XML_DOCUMENT Malformed XML document.
>
> > > > > > > > > > > > I need to keep refreshing the page until my app shows.
>
> > > > > > > > > > > > Is this a known problem with Open Social or should I
> > look closer
> > > > > > > to
> > > > > > > > > > > > home?
>
> > > > > > > > > > > > Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to