Problem special characters saved with php and read in delphi
Posted: Sun 12 Apr 2009 16:47
I have some tables in mysql server where save information with special characters like ('á, 'e, 'i'...' å'ä'ö...'). Whit PHP code not problem for get good result. But from Delphi, with query component connected to mysql server, the information is showing wrong like 'Å/n' not 'í'.
I know php code with stripslashes and others for to correct this, but I don't know if is possible in slq statement for Delphi 2007 query component. I use MyDac components but they don't have procedure or code for get good result.
I don't have any problem to read data from data base table from mysql server with Delphi application. When I write data to server from Delphi application, I can to use special characters and to save to data base and retry display not problem for show correct information.
My problem is with old data saved in data base from my web page, this information was saved with stripslashes and other php code from php script, when I read and write information from mysql data base with php script from my web page, I use php code for transformation of special characters and the result is ok, but I need same from Delphi application, here aren't problem with character set, the basic problem is read information saved from web page.
For example: From web page, I save data like 'información' or 'frånskild' and when read this from web page I can see 'información' and 'frånskild' but, from the other hand, when I make same from Delphi application, I save 'información' and 'frånskild' and when I read, the result show 'información' and ´frånskild', not problem. But , but, If I read data saved from my web page, Delphi application show incorrect display.
Can help me?, Anybody.
I know php code with stripslashes and others for to correct this, but I don't know if is possible in slq statement for Delphi 2007 query component. I use MyDac components but they don't have procedure or code for get good result.
I don't have any problem to read data from data base table from mysql server with Delphi application. When I write data to server from Delphi application, I can to use special characters and to save to data base and retry display not problem for show correct information.
My problem is with old data saved in data base from my web page, this information was saved with stripslashes and other php code from php script, when I read and write information from mysql data base with php script from my web page, I use php code for transformation of special characters and the result is ok, but I need same from Delphi application, here aren't problem with character set, the basic problem is read information saved from web page.
For example: From web page, I save data like 'información' or 'frånskild' and when read this from web page I can see 'información' and 'frånskild' but, from the other hand, when I make same from Delphi application, I save 'información' and 'frånskild' and when I read, the result show 'información' and ´frånskild', not problem. But , but, If I read data saved from my web page, Delphi application show incorrect display.
Can help me?, Anybody.