Problem saving text in Arabic language in mysql [duplicate]

0

I have a site where there are several languages, but when trying to save a text field in the Arabic language, it saves with characters of type "اÙØμÙØØ © اÙØ ± Ø|ÙسÙØ ©", already try to change the chatset of the mysql for utf8 and cp1256, even then the error continues.

Note: dev platform. is still using mysql _

    
asked by anonymous 11.01.2017 / 18:48

2 answers

1

ini_set('default_charset', 'UTF-8');

I've used it once and it worked ( reference )

    
11.01.2017 / 18:56
1

@GuilhermeNascimento is right. You have to use UTF-8 character encoding:

1. On the

2. When connecting to the database

3. In the same database

    
11.01.2017 / 19:17