Forum Moderators: open

Message Too Old, No Replies

Return Spanish text AJAX + PHP + mySQL

         

comomolo

7:09 am on May 24, 2006 (gmt 0)



I'm REALLY new to AJAX. I've coded a very simple example for retrieving some database content using PHP.

The database I'm testing my program against contains items in Spanish, which has some non-ascii characters such as á, or ñ.

First I coded the PHP/mySQL part, then the Javascript part. If I use the PHP code alone, the items are correctly shown using UTF, but when this same PHP code is used inside the whole AJAX thing, I loose the non-ascii characters.

How can I get my Spanish characters back?

kadnan

12:47 pm on May 24, 2006 (gmt 0)

10+ Year Member



HTML provides facility to display non-english character for instance

"&aacute"