Re: special characters
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <php...@pe...> - 2002-05-23 14:56:50
|
that's not true, Dan. If it were, none of my scripts would work! Currently, all my xml files are in 8859-1 (though I will have to change to utf8 to allow for Czech characters) and all the accented characters are in 'regular form' as you call it. None of my php scripts, including phpxpath, has any problems handling this. If by entities you mean things like ä these are html entities and nothing to do with xml (except in the limited case of xhtml). In some ways it's a pity php (and utf8_encode) only handles 8859-1, but at the end of the day unicode/utf8 is a far superior model, so longer-term it's better to convert everything over anyway. On Friday 17 May 2002 9:58 pm, Dan Allen wrote: > Just so everyone knows, xml requires that us use UTF-8 encoding in > your xml documents. That means it is impossible to have all of > those german/french accents in regular form. You must use XML > entities, which just like < and > replace in the output those > characters which are not alpha-numeric characters. So the phpxpath > code should not! check for these characters, you should convert them > when you make your document by using > utf8_encode() |