java - How to parse string with special characters from database using php? -
I had a MySQL database that contained the names of the roads. It is an entry that gives me problems by asking me the database Is: Osmeà ± a Avenue . I've stored the DB using Java, and then I saw the data using phpMyadmin, I saw 4f736d65c3b161204176656e7565 instead of Osmeà ± a Avenue . When I query for the name, I put them in an XML file, which I use for my application. When I query for Osmeà ± a Avenue , my program is freeze. I came to know that in the XML file, ± is replaced by a ¿½, which causes the freeze first, for the first time, I Osmeà ± a Avenue Why saw a bunch of numbers in phpMyAdmin view? And what can I do to get the correct string with special characters from the database using PHP? Thanks in advance! Edit: XML file is used to attract routes through open layers. Format. KML ;. Just understand your data properly. Inside your app, only keep working with the Unicode string, and change / decode string data into symbolic terms on system edges. 4f736d65c3b161204176656e7565 A sequence of bytes (
4f ,
73 , ..) which represents
Osme \ xc3 \ xb1a avenue , which represents
Osmeà ± a Avenue of UTF-8 is.
Comments
Post a Comment