Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Problems with danish char in database [Thread Next] Re: Problems with danish char in databaseTo: NULL Date: 4/7/2008 10:39:00 AM
Just forget this last post. A danish guy gave me the "easy" tip.
$name=$row['name'];
$name=utf8_encode($name);
$newnode->setAttribute("name", $name);
$address=$row['address'];
$address=utf8_encode($address);
$newnode->setAttribute("address", $address);
Everything is now functioning
http://www.tinemuller.dk/googlemap/tutorial/storelocator/library_phpsqlsearch_map.htm
/Tine
"Tine Müller" <tinem@e...> skrev i en meddelelse
news:GckKj.3$Bq2.2@n......
> Thanks for trying to help but it will not work no matter what I do.:-(
>
> I would ask you if you would please tell me WHAT code to change from the
> tutorial
> http://code.google.com/support/bin/answer.py?answer=87134&topic=11364 when
> it used with danish char in the table so that I can try that? And I will
> use utf-8 all the places and then it should work but it doesn't.:-(
>
> Information about webserver
> OS: Debian Linux 4.0
> Webserver: Apache 2
> PHP: Yes, PHP 5.2 - phpinfo
> PHP safe-mode: Not on
> MySQL: Yes, MySQL 5.0
>
> My table use "utf8_danish_ci".
>
> /Tine
>
>
>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
