EIS Librarium - Problems with characters with accent

Hi, I'm using the EIS Librarium plugin (findable in this thread : https://forums.rpgmakerweb.com/index.php?threads/eislibrarium-1-02-updated.58851)

This plugin doesn't seem to support special characters (like éèàù)

The JSON is encoded in UTF-8
It's not font related, it shows well in the message box

here's what happens when I put special chars (it works well when I remove them). Where there is holes in the text was supposed to be a é, or a à

Sans-titre.png


You can notice that sometimes the plugin manage to print some of them, but I don't know why

Any ideas ? I'm suspecting the word wrapping or the function processNormalCharacter(), but I can't find where the code goes wrong :/

EDIT : After deleting this function, the text shows correctly, but word wrapping doesn't work anymore :

Code:
      processNormalCharacter(textState) {
        let char = textState.text[textState.index++];
        let charWidth = this.textWidth(char);

        if(/\w/ig.test(char)) {
          this.updateWordArray(char, textState);
        }
        else if((/\s/ig.test(char) || /[\W]/ig.test(char)) && this.currentWord.length > 0) {
          let word = this.createWord(this.currentWord);
          let firstLetter = this.currentWord[0];
          let wordWidth = this.textWidth(word);

          if(firstLetter.x + wordWidth > this.contentsWidth()){
            this.updateTextStateAndShiftAmount(firstLetter, wordWidth, textState);
          }
          this.contents.drawText(word+char, firstLetter.x, firstLetter.y,  wordWidth * 2, firstLetter.align);
          this.currentWord.length = 0;
        }
        textState.x += charWidth;
      }

EDIT : Problem solved. Removing the function above and adding <wordwrap> at the beginning of the pageText prints everything correctly.

Put if someone wanna fix the "auto word wrapping" not working, that function is where to begin 😉

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/eis-librarium-problems-with-characters-with-accent.114601/