Need to know original encoding of data in external authentications...

Need to know original encoding of data in external authentications...

by Eloy Lafuente (stronk7) -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi,

today I've updated some authentication methods (ldap, db, shibolet...) in order to detect if they are working under one UTF-8 Moodle server to avoid the urtf8_decode() they were executing by default. With this, exactly the same behaviour than in 1.5 is expected, always assuming that original data is UTF-8.

What I wanted to propose is the creation of one new field under each external authentication method, to be able to specify the encoding of the retrieved data. With this we could work against any DB, server... no matter of its encoding because we could convert easily to UTF-8 before inserting data in Moodle.

Ideas will be welcome, ciao smile

P.S.: For your info, this is point 34 of http://docs.moodle.org/en/UTF-8_scripts
Average of ratings: -