Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

i am using utf8_decode(my get data) in my php code before adding to my database.

and my database and tables collation is utf8_general_ci

can anyone help me in this issue

What does sendfn() actually look like? Does it take a UTF8String as input, or does it an AnsiString or UnicodeString instead? Remy Lebeau Aug 7, 2010 at 20:52 sendfunction take value as utf8 string simply sendfn(x;y;u:utf8string); where xand y or other data i sent ,actually i sent data to my webpage www.mysite.com/index.php?action=add ,hope i am clear ,if i missed some thing please let me know regards steve0 Aug 7, 2010 at 22:58 What does "weird data" mean? Question mark. Square box. What? Oh. I see. The picture looks like your unicode font does not include all the glyphs. Try changing your font on the control to Arial Unicode Warren P Aug 7, 2010 at 22:59

The php function utf8_decode converts characters from utf-8 to ISO-8859-1 . If the path your data take (the browser or whatever component you use to send your data to the web server (http request, your php installation, your webpage and your database connection) from your delphi app to your database that is behind you webpage are able to support and configured to use utf-8 data you don't need the utf8_decode function, you can just insert your data the way it comes.

If you haven't already configured php to work with UTF-8 , be aware that it is difficult and never works 100% (for me at least it never did), so maybe it would be better for you to use data in your locale encoding.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .