Skip to main content
English
Source Link
Salem
  • 794
  • 1
  • 8
  • 26

OK I found solution for minemy code, looks like variable continuecontains, none ASCII character so I havehad to remove them an it's, to make it works.

$country = preg_replace('/[[:^print:]]/', '', $country);
$CCodes2=$CCodes[$country];

for youYou should check your php file encoding or, e.g if you are use WYSIWYG editor or formatted text, make sue remove any formatedof these none ASCII text before paste it .

OK I found solution for mine looks like variable continue none ASCII character so I have to remove them an it's works

$country = preg_replace('/[[:^print:]]/', '', $country);
$CCodes2=$CCodes[$country];

for you should check your php file encoding or if you use WYSIWYG make sue remove any formated none ASCII text before paste it .

OK I found solution for my code, looks like variable contains, none ASCII character so I had to remove them, to make it works.

$country = preg_replace('/[[:^print:]]/', '', $country);
$CCodes2=$CCodes[$country];

You should check your php file encoding, e.g if you are use WYSIWYG editor or formatted text, make sue remove any of these none ASCII text before paste it .

Source Link
Salem
  • 794
  • 1
  • 8
  • 26

OK I found solution for mine looks like variable continue none ASCII character so I have to remove them an it's works

$country = preg_replace('/[[:^print:]]/', '', $country);
$CCodes2=$CCodes[$country];

for you should check your php file encoding or if you use WYSIWYG make sue remove any formated none ASCII text before paste it .