Post by alexmitev » Wed Feb 09, 2011 11:06 pm

Hello, I have a strange problem with customer data - Create account page (OC 1.4.9.3) when it contains cyrillic chars. For example, when the name is cyrillic, the DB writes only the 1st letter.
In php.ini the encoding is changed to UTF-8, also all php and tpl files are UTF-8.
I think the problem is in model.account.customer:

Code: Select all

$data['firstname'] = ucwords(strtolower(trim($data['firstname'])));
The data before this line:
Александър
After this line:
А���������
In the DB:
А

So, maybe the php functions ucwords/strtolower/trim don't work well with cyrillic?

New member

Posts

Joined
Wed Jan 19, 2011 10:38 pm

Post by alexmitev » Wed Feb 09, 2011 11:58 pm

P.S.
I noticed the online OC demo works OK... So, maybe it's a question of locale settings?

New member

Posts

Joined
Wed Jan 19, 2011 10:38 pm
Who is online

Users browsing this forum: Amazon [Bot] and 41 guests