You are here: Foreign Characters in PHP « PHP Language « IT news, forums, messages
Foreign Characters in PHP

Posted by Matt White on 03/27/07 10:43

I'm currently working on a website that can convert words from English to
French and vice versa. My problem is this: every time I try to output a
character like é, it comes out as either a box (in IE) or as a question-mark
in a diamond (in FF). To get around this, I use the function:
str_replace("é", "é", $french);. This grabs all accented characters
and converts them into HTML characters. While I can do this, is there
anyway to make sure these characters stay the same and do not need to be
replaced?

Matt

 

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

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