Canada Post special character error fix #2
If this...:
// $twi_cleanPname = preg_replace('/�*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
is replaced with this:
// $twi_cleanPname = preg_replace('/�*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
$twi_cleanPname = preg_replace('/[^A-Za-z0-9- ]/', '', $twi_cleanPname); // Remove any character that isn't A-Z, a-z, 0-9 including hyphen but not a whitespace
and it works... I could use a coffee ;)
https://twitchtoo.com/images/zen_for...rcent_fix2.JPG
Re: Canada Post special character error fix #2
Quote:
Originally Posted by
twitchtoo
If this...:
// $twi_cleanPname = preg_replace('/�*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
is replaced with this:
// $twi_cleanPname = preg_replace('/�*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
$twi_cleanPname = preg_replace('/[^A-Za-z0-9- ]/', '', $twi_cleanPname); // Remove any character that isn't A-Z, a-z, 0-9 including hyphen but not a whitespace
and it works... I could use a coffee ;)
Thanks ! Works like a charm now!
Donated to your coffee fund!
Canada Post Module for 1.56c
Canada Post Module is available for 1.56c and will be submitted to the forum shortly.
https://twitchtoo.com/images/zen_for...alled_156c.JPG
If my work has helped you today in any way - I appreciate your donations!
Re: Canada Post Module for 1.56c
Checking in - do you have an ETA on submitting the Canada Post updates?