Forums / Bug Reports / [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

[Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

Locked

Started by wazer on 16 Apr 2014, 5:52 PM · Views: 1,975

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Apr 2014, 5:52 PM
#1
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

[Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

So we did some testing today, and surprisingly i never thought that zen cart would have such old known bug.

If you create an account and you use letters like ä ö å æ ø for Scandinavian country's the account is going to be made with the tags but all your settings like address, name, last name and so on is totally wiped.

This also counts for trying to update the addresses after with the letters i took a screenshot to show you what i mean, This is with ALL information added on registration page on the left side of the picture and and trying to update with letters after on right side of the picture.

Found out that you actually can update to the correct names via the admin interface, but as a customer/user you will have a hard time trying to figure out what the h3ll is going on, not even to talk about, customer registrations could look like fake/scams, since they technically could write an adress like Horse Road 1 Æ Horse Road 2 but only the text from behind Æ would be picked up for registration so outcome would be

Horse Road 1

when in fact it should

Horse Road 1 Æ Horse Road 2

Attachment 13995

16 Apr 2014, 5:54 PM
#2
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

Re: [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

And if there's ANY that knows how to fix that as a hotfix right here and right now, we will glady take it since a lot of our are from Scandinavia or Germany.

16 Apr 2014, 5:59 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

There's nothing wrong about customers being allowed to use ä ö å æ ø characters.

english.php - What's CHARSET defined to?
database tables - what's the collation set to in each of those fields?

Did your site run v1.3.x at one point, and you upgraded? If so, you probably failed to retain the old CHARSET when upgrading.

ie: http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Apr 2014, 6:12 PM
#4
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

Re: [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

DrByte:

There's nothing wrong about customers being allowed to use ä ö å æ ø characters.

english.php - What's CHARSET defined to?
database tables - what's the collation set to in each of those fields?

Did your site run v1.3.x at one point, and you upgraded? If so, you probably failed to retain the old CHARSET when upgrading.

ie: http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8

This is no upgrade, first time we use zen cart so v1.51

And we use lang=en/english.

Thanks Pal it worked to change it to utf-8

I dont know it it was supposed to be this

define('CHARSET', 'iso-8859-1');

But we changed it to and it works!!!

define('CHARSET', 'utf-8');
16 Apr 2014, 6:38 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

Out-of-the-box, Zen Cart v1.5.1 uses utf8 by default.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Apr 2014, 11:10 PM
#6
wazer avatar

wazer

New Zenner

Join Date:
Apr 2014
Posts:
12
Plugin Contributions:
0

Re: [Not a Bug] you can't use letters like ä ö å æ ø when customers creat/editing address

DrByte:

Out-of-the-box, Zen Cart v1.5.1 uses utf8 by default.

I'm sorry then yes, it was the theme who took over the english.php with an extra file which was not updated from the download section, sorry about blaming zen cart ;)