It's definitely sound slike it'd be easier to fix the encoding issues with the XML code rather than look for a different data format to send your data to the browser.
Start by ensureing your database table is configured to use the correct character set for your data - get this right before populating the table with your data though to avoid problems. http://dev.mysql.com/doc/refman/5.1/en/charset-charsets.html There's not many characters that are treated as special in XML, see here for details of the characters that XML does consider special: http://xml.silmaril.ie/authors/specials/ Then there's a bunch of PHP string replace type functions where you can replace the special characters in your data with encoded versions of the same character: http://uk3.php.net/manual/en/ref.strings.php Martin. On 21 Sep, 18:27, Rossko <[email protected]> wrote: > > I just want to get the data in MySQL and then > > put it in an array or something. > > Okay, that's fairly standard php+MySQL practice. If you're having > trouble with that, go see some php+MySQL tutorials and guides. > > So you've got your data at the server in php variables of your > choice... that's absolutely no use to you in creating a map at the > client browser. > Somehow, you have to transfer the data to the client-side browser - > embedded in an HTML page, or as a file or feed in some format (text/ > JSON/XML/secret code) that the client can access > > I may well be misunderstanding your question, but I have a feeling you > may not have quite grasped the distinctions between server and client > code, and the interactions between them. > > If you've got something already working with XML, barring an encoding > issue, why not just fix the encoding issue? -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
