WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: scratch on February 28, 2012, 12:46:41 AM
-
I'm having some customers unable to submit an order as they address fields reject addresses that use certain special characters, such as commas (,).
Any ideas how to solve this issue?
-
Set "new" allowed Characters in the Langauage-File(s) - Directory: modules/bakery/languages/
Use this, it works for the most chars (be carefull with FR.php, french use other characters)
$MOD_BAKERY['ADD_REGEXP_CHARS'] = '[:print:]ÄÖÜäöüßéçèñàûôÊåúøÈËÍÎŒÓÔÙ??ÁÉÍÓÚáéíóúñÑC(ŠŽc(šž';
in view.php - Line 437 change this code from here
Original
$_POST = array_map('strip_tags', $_POST);
to this new code
$_POST = array_map('stripslashes', $_POST);
foreach ($_POST as $key => $value) {
$_POST[$key] = stripslashes($value);
}
-
Hello, for some reason this is not working for me. I added the line to my en.php file (site is using English language file only) and also modified the view.php file with the lines of code provided here. On other 2 sites I built, they worked by just adding $MOD_BAKERY['ADD_REGEXP_CHARS'] = 'áéíóúñÑ';
What else could be causing bakery to not accept special characters on names?
-
maybe you need utf8-encodet chars, like this from the bakery version 1.70
ÃÀÂÃÄÅáà âãä寿ÇçČÄÃðÉÈÊËéèêëÃÌÎÃÃìîïÑñÓÒÔÕÖØóòôõöøŒœÞþÚÙÛÜúùûüŠšßßýÿŽž°
-
Hello Jacobi, I have my page encoded as UTF-8 but it's not working.
-
Hello again, I am using Bakery V1.6.
I have this in my <head> section:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
I also changed the file to accept special characters:
$MOD_BAKERY['ADD_REGEXP_CHARS'] = 'áéíóúñÑ';
But Bakery still doesn't allow me to use characters like á, é, í...