I’m running a modx site in Hebrew using UTF8 encoding for the site and database but I’m having problems with user signup/login.
Some users signup with English usernames and some choose usernames using Hebrew characters, the English ones work fine but the Hebrew ones are giving me problems. When a user signs up with a Hebrew user name the system seems to work OK, the user gets his confirmation email (including the correct name) and the information is displayed correctly in the manage web users section of the manager, unfortunately when it comes to actually logging the user in things seem to go sour.
When trying to log in the Hebrew named users get the pop up message "Incorrect username or password entered!" which is originating from the login snippet file weblogin.processor.inc.php line 202. It seems that the corresponding sql query (line 198) does not return any matching user names and hence the problem. Also for what its worth ,the names don’t appear correctly in phpMyAdmin.
I’ve tried adding a ’SET NAMES utf8’ sql command to the web signup process (websignup.inc.php line 107) just before the new user is inserted into the database. This helped to some extent as now new Hebrew users are able to sign in but the new names don’t display correctly in the manager
.
Last but not least I have to get this to work with the SMF connector module, again the English users work fine with SMF, but for every Hebrew user in modx
two new users are created on the SMF system both with similar garbled names. After the ’SET NAMES’ change things are ever worse and for every Hebrew user in modx
three new users are created on the SMF system, again with garbled names and of course logging in to modx using these user names does not log into the SMF forum. My SMF forum is also running using utf8 encoding for both the site and the database.
Can anyone point me in the right direction here? Any help would be appreciated.
Erez