For generating the XML data file in php, we use the php to print out the xml file. The header of xml file has to be
<?xml version="1.0" encoding="UTF-8"?>
The problem has been found while running the php script in Firefox. It's so weird.
You may try to compare between two php scripts. Both are the same except that data_utf8.php is saved in the UTF-8 type by using the notepad while data.php was saved into ASCII by using the notepad.
Both files run very well in IE. However, when running on Firefox the file saving into the UTF-8 format does not work properly. The firefox did not work w/ the application.
There are some weird characters appearing. It took me for a long while to find out the problem.
http://yipe.emich.edu/~nwongsai/data_utf8.php?state=IL
http://yipe.emich.edu/~nwongsai/data.php?state=IL
For IE both fils work properly.
The screen shots are shown below.
http://yipe.emich.edu/~nwongsai/data_utf8.php?state=IL running in the Firefox
http://yipe.emich.edu/~nwongsai/data.php?state=IL running in the Firefox
http://yipe.emich.edu/~nwongsai/data_utf8.php?state=IL running in the IE (there is no problem while running on IE for both files)