moodleou/moodle-mod_ouwiki

Error when saving a page with invalid UTF-8 characters

tjwelde opened this issue · 2 comments

I'm in the process of upgrading our version of ouwiki for Moodle2.5.

I tested saving a page where I added content and inserted accidentally a character, which MySql don't want to save, so I get a dml_write_exception.

The Character is U+0000, also called the NULL character
http://www.fileformat.info/info/unicode/char/0000/index.htm

How do you insert the NULL character into the text editor - I didn't seem able to?

Do you get the same error when adding the text into another part of Moodle e.g. Forum post?

Have you seen #9 as this might be a related issue...

I didn't know, which character I accidentally inserted, so I digged through the internet to find out. I thought it was this NULL Character (on mac: enable unicode-hex-editor, write [alt]0000 and copy/paste it into the editor)

But you're right. It's just a normal [space], which causes this error.