Forums / Upgrading to 1.5.x / Internal Character Encoding

Internal Character Encoding

Results 1 to 5 of 5
09 Jan 2012, 21:40
#1
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Posts:
986
Plugin Contributions:
0

Internal Character Encoding

I hope this is a simple questions.

Using Zencart 1.5 with my databases set to UTF-8. However, when I run:

echo mb_internal_encoding();

it returns ISO-8859-1 ???

Have I missed something in either configuration or installation? Shouldn't this return UTF-8?

Thanks!
Chadd
09 Jan 2012, 21:46
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Internal Character Encoding

chadderuski:

Using Zencart 1.5 with my databases set to UTF-8.
That's database.

chadderuski:

However, when I run:

echo mb_internal_encoding();

it returns ISO-8859-1 ???
That's PHP.

They're different.
09 Jan 2012, 22:01
#3
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Posts:
986
Plugin Contributions:
0

Re: Internal Character Encoding

Yes, I do understand that. However, I thought Zencart 1.5 was moving to UTF8 to be more compatible with multi-byte languages.

Is there a reason why I would not want to set mb_internal_encoding(UTF-8)?

Thanks!
09 Jan 2012, 22:02
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Internal Character Encoding

If you're using mb_ functions then you might want to set that.
At this point Zen Cart doesn't use those functions (good or bad), so setting it is basically moot.
09 Jan 2012, 22:53
#5
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Posts:
986
Plugin Contributions:
0

Re: Internal Character Encoding

DrByte:

If you're using mb_ functions then you might want to set that.
At this point Zen Cart doesn't use those functions (good or bad), so setting it is basically moot.


Thank you! That's very encouraging!

I am finally getting some folks that need multi-byte support for their native languages for my EasyPopulate 4. Some of my error detection was balking over their data... I didn't have any good sources for testing this myself, stuck on English as I am!

Thanks for the Help and clarification!