How do you login ?
Don't you use 'us-ascii' encoding for your PHP pages ?
I am using:
$fm = new FileMaker($database, $server, $_POST['username'], $_POST['password']);
to login (https).
This works fine for usernames like "George" but not for unsernames lika Motörhead.
The coding is currently UTF-8.
I am developing in MacOS X Mavericks with Swedish keyboard and settings. The FM13 server is running on a Mac.
1 of 1 people found this helpful
Oops. Unfortunately, there is not support for 128..255 chars.
When defining account names and passwords for Custom Web Publishing
solutions, use printable ASCII characters; for example,a-z,A-Z, and 0-9.
internally, FMPHPAPI use utf8_decode() function to username and password, so only iso-8859-1 charset is supported. Too bad.
OK, I finally also found that information in the manual. To bad that you can't use the full iso-8859-1 charset!
Before I give up, is there no way around this? How is it done in WebDirect? There you can use extended ascii characters!
I found a workaround by using utf8_encode():
$uname = utf8_encode($_POST['username']);
$pword = utf8_encode($_POST['password']);
$fm = new FileMaker($database, $server, $uname, $pword);
Sorry for late, I hadn't succeeded with your workaround.
I found that one more function is need for my environment (Japanese Windows) like
$uname = utf8_encode(iconv('UTF-8','SJIS',$_POST['username']));
It seems WPE convert username to system default encoding of java ?
I tested only a few chars, so not sure about all iso-8859-1 chars is useable on SJIS environment or not.
Password may be same as, but in FMP password text box IME can't be on, so I didn't try to test 128..255 or Japanese chars in password.
Thank you for your commitment to this issue.
For my application I think that I have solved the issue for the time being, the workaround works for all Swedish characters in the browsers tested. However, it might necessary to test for other languish setup on different computers and write a more rigid code to assure function for all options.
I have now left for holiday for three weeks an will not work with this during this period.