Jump to content


Photo

php4 and spanish words - help


  • Please log in to reply
1 reply to this topic

#1 taterman

taterman
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 30 October 2006 - 04:28 PM

Hello,

I created a site with php5 that uses both English and Spanish. It works great in php5, but when I sent the files to our main office in Spain, so the files could be added to the server, they displayed differently. I found out they are only using php4 and whatever is different between the two php versions (or way they are setrup) is making the Spanish letters that use special characters in php4 like (Español, satisfación) all end up displaying incorrectly like (Espa´?¢l, satisfaci´?¢). Can someone please tell me how to display the special characters correctly in php4 or is it a setting in the php.ini file that needs to be configured.


Thanks

#2 Psycho

Psycho
  • Moderators
  • Move along, nothing to see here
  • 11,892 posts
  • LocationCanada

Posted 30 October 2006 - 05:37 PM

It's difficult to offer a solution, because the problem is probably related to a specific function or command that is being run on the text or perhaps how it is stored in a database.

If I run this echo "(Español, satisfación)"; on a PHP4 server it displays correctly.

You should probably do some debugging by echoing the text to the screen at the various stages. For example before and after any commands/functions you apply to the text.
The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users