You are here: Re: Replace character (UTF-8) « PHP Programming Language « IT news, forums, messages
Re: Replace character (UTF-8)

Posted by R. Rajesh Jeba Anbiah on 12/17/72 11:54

Peter.Laganis@gmail.com wrote:
> Hi to all,
>
> I apologize in advance if a similar question was already posted, but I
> didn't find it.
> Here is my problem:
>
> I would like to replace all the special characters ' ¾' with another
> special character 'ž' in a string (retreived by an SQL). After that I
> would like to update the field with the corrected string.
>
> The table and the field are correctly set to UTF-8.
>
> Is there a way? I have tried with the usage of functions such as
> 'str_replace', 'utf8_decode', 'utf8_encode' but without sucess.

Try saving the PHP file in UTF-8.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.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

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