If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Invalid multibyte sequence error

Invalid multibyte sequence error

Started by swguy on 31 Jul 2011, 9:53 PM · Views: 1,762

Results 1 to 7 of 7
31 Jul 2011, 9:53 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

Invalid multibyte sequence error

I'd be interested in hearing from others who have experienced this. File is

includes/modules/payment/linkpoint_api.php

lines are 324, 420, 422, 434, 435.

Latest Zen Cart, PHP 5.3.3.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

31 Jul 2011, 10:20 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Invalid multibyte sequence error

See "Similar Threads" below ... ?

.
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.

31 Jul 2011, 10:45 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

Re: Invalid multibyte sequence error

The only one that was truly similar was the July 09 post, where the guy found he had a space at the end of his product name - which really doesn't even make sense since

htmlentities($some_string . " ", ENT_QUOTES, 'UTF-8');

works fine.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

31 Jul 2011, 10:47 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Invalid multibyte sequence error

What specific problems are you encountering? How are you triggering this problem? How did you come up with that list of line numbers?

.
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.

31 Jul 2011, 10:54 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

Re: Invalid multibyte sequence error

Those line numbers were in logs in the cache directory.
I am not certain they are correlated with specific problems but we're having issues with the cart not emptying following orders and I'm trying to figure out if there's a connection.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 Aug 2011, 1:39 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Invalid multibyte sequence error

I've not tested it, but you might get around those errors by substituting CHARSET (no quotes) for the 'UTF-8' (with quotes) references in those lines of code, so that it uses your site's defined CHARSET instead of forcing UTF-8.

Doubtful that it has much direct correlation to carts not emptying after payment, since those lines of code deal with preparing payment transaction submissions before payment is collected, not after.

.
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.

25 Aug 2012, 6:57 PM
#7
llynix avatar

llynix

Zen Follower

Join Date:
Jul 2009
Location:
Texas
Posts:
210
Plugin Contributions:
0

Re: Invalid multibyte sequence error

Zencart 1.3.9h similar error message. I had a lot of products with extraneous spaces in them. Hoping the following SQL fixes the problem.

UPDATE cart1_products_description SET products_name = TRIM(products_name);
UPDATE cart1_products_description SET products_name = REPLACE( products_name, " ", " " );

This has been going on for a bit on my cart.. but doesn't seem to be affecting orders.

DentalPlanet Designed/Administrated by Falls Geek