Hello fello php programmers,
I have a problem with mysql's collations and encoding regarding utf-8 and hebrew texts.
I'm now working on a running site that has a table which contain a char(60) field.
the fields and the table and collation latin1_swedish_ci for some reason - and i say "for some reason" because the site is running utf-8 and the text value is hebrew.
now because of that, when someone enters text that comes close to 60 chars the utf-8 encoding breaks and i get the wierd ? symbol (? in a black dimond box).
i need to change the collations to utf-8 unicode and somehow recode the values... i thought of building a php scripts that:
1. runs over all the tables
2. changes the collations
3. selected the field
4. converts the encoding and updates' the row.
is this the correct way of solving this problem?
all my attempts were a failure :-( (tried using both iconv, and mbstring_convert_encoding). PHP already recognizes the text i select from the table as UTF-8...
what can/should i do to fix this? any idea's?
Thanks,
Ken.