You are here: Re: Need help storing special characters like ° (degrees) « All PHP « IT news, forums, messages
Re: Need help storing special characters like ° (degrees)

Posted by J.O. Aho on 02/19/07 16:47

Pugi! wrote:
> Whenever I insert a geographical coordinate in database or even in
> textfile after submit, for example 15°16'18''
> it ends op like 15°16'18''. é, à, ç, è, ... ends up funny too. It
> shows ok when displayed on webpage. But it is hardly readable in
> database or in textfile.

You store UTF-8 characters into your database/files, you still need
UTF-8 support in the terminal where you display the result, most people
still uses some sort of ISO8859, in which character with values over 127
will be represented with a "dual 8-bit character". As the browser is set
to display UTF-8 it will be shown correctly.

You can in worst case use utf_decode()/utf_encode()

--

//Aho

 

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

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