Posted by Andrew @ Rockface on 06/24/05 16:36
In news:d9gumf$sf8$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com,
MS <nospamplaesegr8t_ukuk@yahoo.co.uk> wrote:
>> What encoding is the data in the first place, in the database?
>
> Pass !!
>
> How can i tell ?
>
> Its mysql and was populated from a webform!!
You should just need to utf8_encode from html into a xml doc and utf8_decode
when you extract from the xml and view via html.
Here's how I store a value set via a html form in an xml doc:
$newnode->set_content(utf8_encode($_SESSION['price']));
Here's how I view the same value in a html page:
$price = htmlspecialchars(utf8_decode($arr[0]->get_content()));
--
Andrew @ Rockface
np: 1000 Suns - 5 [stopped]
www.rockface-records.co.uk
[Back to original message]
|