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 ;.

4f736d65c3b161204176656e7565 A sequence of bytes ( 4f , 73 , ..) which represents Osme \ xc3 \ xb1a avenue , which represents Osmeà ± a Avenue of UTF-8 is.

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.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -