Develop uft8 ver3#800
Conversation
… and mess up the database. Note: We do not need decode from thaw because as sequences of bytes nothing changes. (I think.)
…ch/webwork2 into locbug Conflicts: courses.dist/modelCourse/course.conf
… suggested by goehle
added [qw(Encode::Encoding)] to ${pg}{modules}) in defaults.config as…
…lop_uft8_ver2 # Conflicts: # lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm # lib/WeBWorK/Utils.pm
|
I also found a solution to my problem about the extra library button. It's the exact same solution I did with Login.pm. In the lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm file, you add the line and you replace the line 406 : and also the line 837 :
@heiderich , can you make the change to your branch. I don't want to create another pullrequest just for that. Thank you! |
|
I didn't convert my SQL database yet, i just change the charset to utf8 for new created courses, but the existing table have not been converted. Maybe I found a solution, but I don't want to test it yet until I showed it to someone. |
|
@jutrembBDEB Let me just mention that @goehle posted an SQL command in his original pull request #712 to convert the database to utf8. I remember that I used a variant of it. The main difference was that I used utf8mb4 instead of utf8 for full utf-8 support (I think the names are a little misleading). I would also propose utf8mb4 as a default for WeBWorK. For more detail see I remember that I needed some more SQL commands to change encodings on different levels, but I do not recall them right now. Use the mentioned SQL commands at your own risk and better create a backup beforehand. Please let us know about your experiences. |
|
I made the following observation concerning the problem with non-ASCII characters in the metadata of problems / the Taxonomy2 file:
Note that the two strings "The are XXX/no matching WeBWorK problems" come from different places. The first one (shown before clicking on "View problems") is defined in Another issue here is the translation of this string in the .js file. I opened the issue #781 for this. |
|
I still experience a problem when I try to create a homework set from the library browser with a name that contains non-ASCII characters. The error is: Which are the restrictions on the set names? Can we allow non-ASCII characters? If not, maybe we should consider to provide a better error message. |
|
Florian: Thanks for the report -- this message is from webwork -- in |
f73a0cf to
e63662e
Compare
|
I think that commit d24b860 and ac90685 should fix the problem in the library browser that no problems were shown when subject, chapter or section containe non-ASCII characters. It seems that this was caused by the following: Some strings were internally not stored in utf8 in perl. This probably causes problems when they were passed to MySQL (which I think expected utf8, at least after commit d24b860). Applying utf8::upgrade to these strings seems to solve this problem. |
|
@mgage: I think the problem with non-ASCII characters in names of homework sets I mentioned above is not necessarily related to this pull request and I think it could be addressed later on. |
|
Here we go!!!! |
|
See also PR #798 for comments |
This pull request is a follow up to pull request #798 by @mgage.
This is experimental -- do not merge it yet.
Remaining problems (this list is not exhaustive):
As mentioned by @jutrembBDEB:
Entries from exiting MySQL tables do not display correctly. Probably they need to be reencoded.
@jutrembBDEB: How did you convert your MySQL database?
As observed by @heiderich: