CS Lover 0 Newbie Poster

hi

I have database with charest " latin1_swedish_ci " where data is represnted like " ÇáÚÇÈ ÇßÔä action game ÇßÔä ÇáÚÇÈ " as u see the strange chars is arabic


I've tried everything, i mean i thought i was really good at converting charests i know it .. but never tried that latin1_swedish !

when i convert from cp1256 to utf-8 it works well, utf-8 to any works well .. just that latin1_swedish_ci is so strange !


So,
- i have 2 databases first is latin1 and 2nd is utf8
- i have file move.php which connects to the 2 databases and transfer the database with the new charest
- i tried set names 'utf8' when iam reading
- i tried iconv library in php it doesnt work with latin1 also


when i try set names utf8 while reading from latin1_swedish_ci to utf8_unicode_ci .. it shows strange chars in the browser but when i set the encoding to windows-1256 i can read it perfect !

So, how come !

any ideas plz ? thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.