- Posts: 36
problem with cyrillic names
- Iliya
-
Topic Author
- Offline
- Junior Member
-
After all I got Joomdle Web Services bad status in joomdle joomla admin.
Maybe I take mistake somewhere. Now I trying to apply your changes on fresh joomdle install.
Please Log in or Create an account to join the conversation.
- Iliya
-
Topic Author
- Offline
- Junior Member
-
- Posts: 36
Thank you, Antonio!
But mapping in jomsocial profile poles do not work anyway
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
As for Jomsocial: I will need to check it locally, to see if I can replicate the problem.
Please Log in or Create an account to join the conversation.
- Iliya
-
Topic Author
- Offline
- Junior Member
-
- Posts: 36
Only first user (my test user) had this problem, after it another users working good.
Please Log in or Create an account to join the conversation.
- saman سامان
-
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
- Posts: 253
hiAntonio Durán wrote: Hi.
Thank you very much for the info. I have tested, and indeed, it seems to solve the problem.
I needed to add the code to client and server to make it work.
So, we would need to add the changes to Joomdle, although for that I will need to do good testing. It is a very important change, as it would modify how web services are handled.
I have tested doing these changes in Joomdle, and it seems to be working fine.
If you want to make the changes now to start testing, here they are:
File administrator/components/com_joomdle/helpers/content.php
Function: get_request
You need to add 'escaping'=>'markup' to all xmlrpc_encode_request calls. For example:
We had:So now it would be:Code:$request = xmlrpc_encode_request("joomdle_".$method, array (), array ('encoding' => 'utf-8'));Code:$request = xmlrpc_encode_request("joomdle_".$method, array (), array ('encoding' => 'utf-8', 'escaping'=>'markup'));
File: components/com_joomdle/controllers/ws.xmlrpc.php
Function: server
At the end, change:By:Code:$response = xmlrpc_server_call_method($xmlrpc_server, $request_xml, '');Code:$response = xmlrpc_server_call_method($xmlrpc_server, $request_xml, '', array('encoding'=>'UTF-8','escaping'=>'markup'));
File: moodle/auth/joomdle/auth.php
Function: call_method_fgc and call_method_curl
At the start, change:By:Code:$options = array ();Code:$options = array ('encoding' => 'utf-8', 'escaping'=>'markup');
I also checked Moodle XMLRPC server code, and found that in fact 'escaping'=>'markup' was added some time ago after I submitted a different problem with XMLRPC and latin chars on Moodle 3.1, Weird when you google something and find that you wrote the first result
Please test the changes and let me know how they work for you. I will do some good testing in the next days too, to make sure this does not cause any problems.
tnx for doing this work.
I test it many time and edit that file and read your post again and exact.but it's not work for me. i am using your CB plugins and using normal add user in back-end of joomla but not work.do you want i get the film from my work? i attach the file that modify and you can look that for any probably mistake or possible errors. you can test with this Persian word : محمد
Please Log in or Create an account to join the conversation.
- saman سامان
-
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
- Posts: 253
can you give me your files that you change it?Iliya wrote: So, I change php ver to 5.6.28 and try to apply your changes again and it's working!
Thank you, Antonio!
But mapping in jomsocial profile poles do not work anywayI got empty poles in moodle.
Please Log in or Create an account to join the conversation.
- Iliya
-
Topic Author
- Offline
- Junior Member
-
- Posts: 36
this works for mesaman wrote: can you give me your files that you change it?
please check you joomdle system health after you add changes, and maybe you will need php ver >5.6
Please Log in or Create an account to join the conversation.
- saman سامان
-
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
- Posts: 253
tnx dear lliyaIliya wrote:
this works for mesaman wrote: can you give me your files that you change it?
please check you joomdle system health after you add changes, and maybe you will need php ver >5.6
I used your file and my php ver is 5.6.29. After i using your file (your files almost like my files) it's not work for me.
All joomdle system health has green check and they are ok.
are you sure the user create in your moodle side?after i use that file, even my username is save as ???? in my database.you can see in below link
[strike] screencast.com/t/9w6jekupnc91 [/strike]
editlink :
screencast.com/t/JDERYcgWGN
Please Log in or Create an account to join the conversation.
- Iliya
-
Topic Author
- Offline
- Junior Member
-
- Posts: 36
saman wrote: tnx dear lliya
I used your file and my php ver is 5.6.29. After i using your file (your files almost like my files) it's not work for me.
All joomdle system health has green check and they are ok.
are you sure the user create in your moodle side?after i use that file, even my username is save as ???? in my database.you can see in below link
editlink :
screencast.com/t/JDERYcgWGN
I think, we talking about different problems
I told not about usernames (logins), but about names, surnames and so on. XMLRPC error gave blank poles in moodle, not "????" like you have . Maybe you have another error in joomdle or moodle code.
I saw some time ago, that moodle add some option in admin panel. It sounds like "allow to use not latin characters in usernames." Maybe you need to check this option.
We do not use non latin usernames, and Antonio made joomdle patch that checks characters in joomla before registration.
PS maybe you need to check persian-name user creation from joomla admin panel (not from community builder)
Please Log in or Create an account to join the conversation.
- saman سامان
-
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
- Posts: 253
I have your problem exactly but i say when i changed the file according Antonio post, i get the error that show ???? instead solve the problem like you.Iliya wrote:
I think, we talking about different problems
I told not about usernames (logins), but about names, surnames and so on. XMLRPC error gave blank poles in moodle, not "????" like you have . Maybe you have another error in joomdle or moodle code.
your mean probably this : "Allow extended characters in usernames"Iliya wrote:
I saw some time ago, that moodle add some option in admin panel. It sounds like "allow to use not latin characters in usernames." Maybe you need to check this option.
I check that and i guess my setting is Ok because i can create normal non-persian username and first-name and last-name from moodle side normally and it save in moodle database.
before i change the 3 file that Antonio say inIliya wrote:
We do not use non latin usernames, and Antonio made joomdle patch that checks characters in joomla before registration.
www.joomdle.com/forum/installation/12007...cyrillic-names#19558
user can register in joomla side by non-Latin username but the first name is blank in moodle side(and moodle database)
Please Log in or Create an account to join the conversation.