Re: In Search of the Elusive Middleware Example
Posted: Sun Apr 19, 2015 7:13 pm
Yes thanks!
..... but there is even a far more simple way, i read a bit on the stackoverflow site and tested it and the solution is very simple.
the whole database is UTF-8.
the script i used are edited in Notepad++, with coding as UTF8 (with BOM) , this BOM produces the characters you do not want to see.
So if you save the PHP scripts again with Notepad++ but then use coding UTF8 (without BOM) then the characters will not be shown in the livecode text fields.
So it simply has to do with the encoding of the scripts and the database, they have to match completely.
some usefull links:
http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
http://stackoverflow.com/questions/1505 ... 5#15051235
http://stackoverflow.com/questions/1446 ... ing-in-php
http://stackoverflow.com/questions/6779 ... characters
http://php.net/manual/en/mysqli.set-charset.php
http://stackoverflow.com/questions/2223 ... 41#6647241
..... but there is even a far more simple way, i read a bit on the stackoverflow site and tested it and the solution is very simple.
the whole database is UTF-8.
the script i used are edited in Notepad++, with coding as UTF8 (with BOM) , this BOM produces the characters you do not want to see.
So if you save the PHP scripts again with Notepad++ but then use coding UTF8 (without BOM) then the characters will not be shown in the livecode text fields.
So it simply has to do with the encoding of the scripts and the database, they have to match completely.
some usefull links:
http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
http://stackoverflow.com/questions/1505 ... 5#15051235
http://stackoverflow.com/questions/1446 ... ing-in-php
http://stackoverflow.com/questions/6779 ... characters
http://php.net/manual/en/mysqli.set-charset.php
http://stackoverflow.com/questions/2223 ... 41#6647241