moodleou / moodle-mod_ouwiki

Alternative wiki module for Moodle 2 (designed for use in teaching and learning)
36 stars 32 forks source link

Error when saving a page with invalid UTF-8 characters #23

Closed tjwelde closed 11 years ago

tjwelde commented 11 years ago

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

jason-platts commented 11 years ago

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 https://github.com/moodleou/moodle-mod_ouwiki/issues/9 as this might be a related issue...

tjwelde commented 11 years ago

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.