You are here: Re: [PHP] getting text with strange encodng « PHP « IT news, forums, messages
Re: [PHP] getting text with strange encodng

Posted by Chris Shiflett on 03/17/05 20:36

Diana Castillo wrote:
> Does anyone know what kind of string encoding this is :
> &reg&reg
> mA&reg
> and how can I decode this?

That looks almost like an HTML entity:

®

Assuming that's what it is, and you just left off the semicolon, you can
decode it with this:

html_entity_decode()

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

 

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

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