Re: [PHP] Re: ampersand in dom with utf-8

2005-11-02 Thread jonathan
so I decided it would be best just to convert back to the original format so for this string: $string="braised beef shortribs with sautéed greens, pearl onions and horseradish cream" I do an html_entity_decode($string); but this still gives me an error when I add it via the DOM functions b

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread Jasper Bryant-Greene
jonathan wrote: So I'm reading up on character encoding in XML documents as I think this is the problem (after the many helpful suggestions on this list). With regards to your second question; no, I'm not sure if I'm using proper utf-8 througout the entire process. When I input from the form

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread jonathan
So I'm reading up on character encoding in XML documents as I think this is the problem (after the many helpful suggestions on this list). With regards to your second question; no, I'm not sure if I'm using proper utf-8 througout the entire process. When I input from the form I'm converti

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread jonathan
I've been setting the here's some output: Starters soupe au pistou with amaranth and grana breadcrumbs farm lettuces with reed avocado, crème fraîche, radish and cilantro On the second item, this

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-14 Thread Jasper Bryant-Greene
jonathan wrote: the real characters (presumably è) won't render correctly. Are you outputting the correct character set information (UTF-8), and are you sure that UTF-8 is being used throughout the entire process? -- Jasper Bryant-Greene General Manager Album Limited a: Freepost Album, PO B

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-14 Thread jonathan
the real characters (presumably è) won't render correctly. it seems like there should be a set of functions for encoding this to a different but understandable format and then another function for decoding and display within a browser. it makes me not want to use DOM for creating xml files.

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-14 Thread jonathan
are there php functions to change from these different formats as &#e8; doesn't seem to render correctly in a browser. ugghhh. -jonathan On Oct 13, 2005, at 4:53 AM, cc wrote: è -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-13 Thread Marcus Bointon
On 13 Oct 2005, at 07:24, cc wrote: both `è' and `î' are not entities in charset utf-8, use `è' and `î' instead. I would expect that to result in unconverted entities in the output. If you're intending to send that content as HTML, then I guess that would be OK. However, if yo