0

The error_log problem isn't my actual problem, though. I'm trying to figure out the following problem:

I have quilljs running on a page.

I type accents, like "aãa" above.

I grab it with getText, send it to php with $.post (ajax, I believe)

Whatever I try to do with it, it comes out garbled like that.

Specifically what I'm trying to do is this: array_count_values(str_word_count($text, 1));

To find repeated words and later highlight them in the text, basic stuff, only the character encoding problem is making it harder than it should be.

I've made sure php.ini, my.ini and the html file all have utf-8 encoding.

Encoding in base64 with jQuery and then decoding it back to a normal string with php also didn't solve it (after all, even a direct error_log of a text with accents is enough to garble it).

halfer
  • 19,824
  • 17
  • 99
  • 186
tsa
  • 15
  • 5

0 Answers0