You are here: Re: UTF-8 ?? ISO etc etc « All PHP « IT news, forums, messages
Re: UTF-8 ?? ISO etc etc

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация