Giter VIP home page Giter VIP logo

Comments (8)

C0D3D3V avatar C0D3D3V commented on June 16, 2024 1

Ah thank you very much! This is very helpful. I'll try to prevent it.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on June 16, 2024

Looks like your Moodle has at least one invalid UTF-8 text which the downloader tries to store in the local database. I will think of a solution tomorrow. Either allow invalid UTF-8 or remove the affected characters, not sure which would be better.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on June 16, 2024

Was this the first time you run the downloader?

from moodle-dl.

Kerouace avatar Kerouace commented on June 16, 2024

It was the first time I tried to download all the Moodle courses.
I tried a lot today and I think the error was not caused by a Moodle entry with invalid UTF-8 characters.
The error seems to correlate with pressing arrow keys during renaming of courses.
I renamed all the courses in the config dialog and made a mistake.
I tried to use the arrow keys to navigate to the place of the typo.
This did not work and I deleted the name and rewrote it.
My guess is that a keystroke is still in the configuration.
So it might be useful to prevent such entries in the configuration dialog.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on June 16, 2024

Do you use Linux?

from moodle-dl.

Kerouace avatar Kerouace commented on June 16, 2024

I use the python:3 docker image which is based on Debian.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on June 16, 2024

Ah found the problem. Arrow keys should now working in input. But i can not prevent some complete strange utf-8 input, I have no idea how i could do this without dropping utf-8 support completely.
There is a way to adjust the SQL-Lite cursor so that it drops invalid utf-8 characters, but for now this problem should be fixed. If such a problem occurs again I will take harder steps.

I'm gonna push this to main tonight.

from moodle-dl.

Kerouace avatar Kerouace commented on June 16, 2024

Thank you! I really appreciate your efforts.

from moodle-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.