Dear all,
I am from Vietnam and I installed Opencart for my study. I found an issue with unicode.
In store front, when I create new account and I enter my firstname, lastname, address etc... by Vietnamese (unicode), then I login and edit my account, I saw that the info given by Unicode lose. For example:
First Name: Cương
Last Name:Nguyễn Vũ Hoàng
Then the account info display:
First Name: C
Last name: Nguy
I found in calalog/model/account/customer.php, addCustomer function have the codes like:
$data['firstname'] = ucwords(strtolower(trim($data['firstname'])));
$data['lastname'] = ucwords(strtolower(trim($data['lastname'])));
$data['company'] = ucwords(strtolower(trim($data['company'])));
$data['address_1'] = ucwords(strtolower(trim($data['address_1'])));
$data['address_2'] = ucwords(strtolower(trim($data['address_2'])));
$data['city'] = ucwords(strtolower(trim($data['city'])));
I think this code make the problem. Is that right?
Who is online
Users browsing this forum: No registered users and 10 guests