- Posts: 2
Hungarian UTF8 character name syncronising
- Szabó Gábor
- Topic Author
- Offline
- New Member
-
Less
More
11 years 8 months ago #1
by Szabó Gábor
Hungarian UTF8 character name syncronising was created by Szabó Gábor
Hi!
I have a problem, that i've working on a while, and supposed i cant resolve on my own.
System: newest joomla(3.3.3), moodle(2.7.2), joomdle.
The problem: when i create a new user in moodle, AND i choose authentication mode "joomdle" AND the first name has hungarian character, like "ő", "ű", "ó", "á", or "é" the first name appears in the users, damaged. If i choose "manually" authentication mode, the problem is not appear.
Example:
first name: "Kovács" -> "Kov"
"Tükör" -> "T"
The user syncronized to joomla in this way. Interesting thing, the surname field encoding and syncing perfectly!
Example:
First name: "Kovács"
Surname: "Károly"
The name field in the moodle and joomle then: "Károly Kov"
Also, when i manually update the user first name later, it's syncing and encoding good! I think the problem is somewhere in the joomdle new user php function, but i cant find.
The mysql database has utf8 coding, and courses and anything else encoded well.
Anybody has idea what cause this?
I have a problem, that i've working on a while, and supposed i cant resolve on my own.
System: newest joomla(3.3.3), moodle(2.7.2), joomdle.
The problem: when i create a new user in moodle, AND i choose authentication mode "joomdle" AND the first name has hungarian character, like "ő", "ű", "ó", "á", or "é" the first name appears in the users, damaged. If i choose "manually" authentication mode, the problem is not appear.
Example:
first name: "Kovács" -> "Kov"
"Tükör" -> "T"
The user syncronized to joomla in this way. Interesting thing, the surname field encoding and syncing perfectly!
Example:
First name: "Kovács"
Surname: "Károly"
The name field in the moodle and joomle then: "Károly Kov"
Also, when i manually update the user first name later, it's syncing and encoding good! I think the problem is somewhere in the joomdle new user php function, but i cant find.
The mysql database has utf8 coding, and courses and anything else encoded well.
Anybody has idea what cause this?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
11 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Hungarian UTF8 character name syncronising
Thanks for the bug report.
It seems you can fix this by editing administrator/components/com_joomdle/helpers/users.php, function create_joomla_user().
Change
By:
It seems you can fix this by editing administrator/components/com_joomdle/helpers/users.php, function create_joomla_user().
Change
Code:
return JoomdleHelperMappings::save_user_info ($user_info);
Code:
return JoomdleHelperMappings::save_user_info ($user_info, false);
Please Log in or Create an account to join the conversation.
- Szabó Gábor
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
11 years 8 months ago #3
by Szabó Gábor
Replied by Szabó Gábor on topic Hungarian UTF8 character name syncronising
I can't believe is this actually working! Thank you, it's a huge help for me!
Please Log in or Create an account to join the conversation.