Page 1 of 1

Unicode issue

Posted: Wed Apr 13, 2011 12:41 pm
by nvhcuong
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?

Re: Unicode issue

Posted: Thu Apr 14, 2011 12:46 am
by Daniel
your right it should not be there.

Re: Unicode issue

Posted: Mon Apr 25, 2011 11:05 am
by Qphoria