Joomdle 1.0 Installation

problem with cyrillic names

  • Iliya
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #11 by Iliya
Replied by Iliya on topic problem with cyrillic names
Well, I tried to apply your changes and it seems that it does not helps.
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
  • Junior Member
More
9 years 4 months ago #12 by Iliya
Replied by Iliya on topic problem with cyrillic names
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 anyway :) I got empty poles in moodle.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #13 by Antonio Durán
Replied by Antonio Durán on topic problem with cyrillic names
Thanks for the confirmation.

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
  • Junior Member
More
9 years 4 months ago #14 by Iliya
Replied by Iliya on topic problem with cyrillic names
You no need to check it, because I cannot replicate the problem myself :))
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
  • Elite Member
  • samansamani2[at]yahoo.com
More
9 years 4 months ago #15 by saman سامان
Replied by saman سامان on topic problem with cyrillic names

Antonio 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:

Code:
$request = xmlrpc_encode_request("joomdle_".$method, array (), array ('encoding' => 'utf-8'));
So now it would be:
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:
Code:
$response = xmlrpc_server_call_method($xmlrpc_server, $request_xml, '');
By:
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:
Code:
$options = array ();
By:
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.

hi
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
  • Elite Member
  • samansamani2[at]yahoo.com
More
9 years 4 months ago #16 by saman سامان
Replied by saman سامان on topic problem with cyrillic names

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 anyway :) I got empty poles in moodle.

can you give me your files that you change it?

Please Log in or Create an account to join the conversation.

  • Iliya
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #17 by Iliya
Replied by Iliya on topic problem with cyrillic names

saman wrote: can you give me your files that you change it?

this works for me
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
  • Elite Member
  • samansamani2[at]yahoo.com
More
9 years 4 months ago - 9 years 4 months ago #18 by saman سامان
Replied by saman سامان on topic problem with cyrillic names

Iliya wrote:

saman wrote: can you give me your files that you change it?

this works for me
please check you joomdle system health after you add changes, and maybe you will need php ver >5.6

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

[strike] screencast.com/t/9w6jekupnc91 [/strike]


editlink :
screencast.com/t/JDERYcgWGN
Last edit: 9 years 4 months ago by saman سامان.

Please Log in or Create an account to join the conversation.

  • Iliya
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #19 by Iliya
Replied by Iliya on topic problem with cyrillic names

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
  • Elite Member
  • samansamani2[at]yahoo.com
More
9 years 4 months ago - 9 years 4 months ago #20 by saman سامان
Replied by saman سامان on topic problem with cyrillic names

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.

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 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.

your mean probably this : "Allow extended characters in usernames"
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.

Iliya wrote:
We do not use non latin usernames, and Antonio made joomdle patch that checks characters in joomla before registration.

before i change the 3 file that Antonio say in
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)
Last edit: 9 years 4 months ago by saman سامان.

Please Log in or Create an account to join the conversation.