Moodle

Unicode: Add one new parameter (xxx_original_encoding) to authentication methods

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.8
  • Component/s: Authentication
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

in order to be able to convert from external sources (ldap, db...) encoding to utf8 if Moodle is running in that mode avoiding the current utf8_decode() implemented.

Point 34 of http://docs.moodle.org/en/UTF-8_scripts

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

From Martin Langhoff (martin at catalyst.net.nz) Monday, 17 July 2006, 05:17 AM:

Yup. Makes sense to me. I am aiming to do a cleanup of auth this & next week, so I'll probably look into this. 1.6.1 target?

From Petr Skoda (skodak at centrum.cz) Monday, 17 July 2006, 03:39 PM:

my +1 for 1.7 or 1.6.2

reassigning to Martin

Show
Martin Dougiamas added a comment - From Martin Langhoff (martin at catalyst.net.nz) Monday, 17 July 2006, 05:17 AM: Yup. Makes sense to me. I am aiming to do a cleanup of auth this & next week, so I'll probably look into this. 1.6.1 target? From Petr Skoda (skodak at centrum.cz) Monday, 17 July 2006, 03:39 PM: my +1 for 1.7 or 1.6.2 reassigning to Martin
Hide
Petr Škoda (skodak) added a comment -

to be fixed in 1.8

Show
Petr Škoda (skodak) added a comment - to be fixed in 1.8
Hide
Martín Langhoff added a comment -

Hola!

If you are taking this over, similar comments to MDL-5277.

In terms of LDAP: I did a bit of reading of the LDAP spec and the ldap code included in PHP sources to see what oyu are supposed to get. LDAP v3 says pretty much "any unicode" which could mean UTF16 or UCS or whatever. In practice, apparently all the servers use utf-8 in practice. OpenLDAP definitely does.

I am not, however, 100% confident that all PHP versions do the right thing when handling the LDAP data :-/

Show
Martín Langhoff added a comment - Hola! If you are taking this over, similar comments to MDL-5277. In terms of LDAP: I did a bit of reading of the LDAP spec and the ldap code included in PHP sources to see what oyu are supposed to get. LDAP v3 says pretty much "any unicode" which could mean UTF16 or UCS or whatever. In practice, apparently all the servers use utf-8 in practice. OpenLDAP definitely does. I am not, however, 100% confident that all PHP versions do the right thing when handling the LDAP data :-/
Hide
Petr Škoda (skodak) added a comment -

From my personal MS AD experience I know that PHP functions are returning UTF-8 too in case of v3 and default platform encoding (eg. cp1250) for v2.

I guess we could make the encoding conversion configurable so that both types can be used if needed.

Show
Petr Škoda (skodak) added a comment - From my personal MS AD experience I know that PHP functions are returning UTF-8 too in case of v3 and default platform encoding (eg. cp1250) for v2. I guess we could make the encoding conversion configurable so that both types can be used if needed.
Hide
Petr Škoda (skodak) added a comment -

thanks for the info!

Show
Petr Škoda (skodak) added a comment - thanks for the info!
Hide
Petr Škoda (skodak) added a comment -

fixed in ext auth db, now going to work on ldap...

Show
Petr Škoda (skodak) added a comment - fixed in ext auth db, now going to work on ldap...
Hide
Petr Škoda (skodak) added a comment -

should be fixed in cvs

Show
Petr Škoda (skodak) added a comment - should be fixed in cvs

Dates

  • Created:
    Updated:
    Resolved: