Post by nvhcuong » Wed Apr 13, 2011 12:41 pm

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?
Last edited by i2Paq on Mon Apr 25, 2011 2:15 pm, edited 1 time in total.
Reason: Fix can be found in the link provide by Qphoria

Newbie

Posts

Joined
Wed Feb 09, 2011 7:33 pm

Post by Daniel » Thu Apr 14, 2011 12:46 am

your right it should not be there.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 10 guests