View Single Post
  #25 (permalink)  
Old 01-09-2008, 11:43 AM
bbrian017 bbrian017 is offline
Banned
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
Quote:
Originally Posted by beatniak View Post
Resolved the weird characters on goboz by adding these 2 lines AS THE FIRST ONES in the remove_error_creating_characters function:
Code:
function remove_error_creating_chars($chars) { 
    $replace=array( 
    '—' => '--', // Steef2k8-01 - remove really weird characters
  '’' => '\'', // Steef2k8-01 - remove really weird characters  
I said as the first 2 lines of all the replaces, because below it some characters from these strings are getting replaced, so the function won't find — and ’ anymore.
i.e.:
Code:
    'â' => 'a',
ok sorry I didn't get this, could you please tell me what file and line y ou added this code to :)

Sorry about not understanding...

unless you added it here somewhere,

Code:
function remove_error_creating_chars($chars) { 
	$replace=array( 
	'?' => 'A',
	'?' => 'A', 
	'?' => 'a',
	'?' => 'a2',
	'?' => 'a3',
	'?' => 'a4',
	'?' => 'a5',
	'?' => 'a',
	'?' => 'a',
	'?' => 'ae',
	'?' => 'ae',
	'?' => 'e',
	'?' => 'E',
	'?' => 'E',
	'?' => 'I', 
	'?' => 'i', 
	'?' => 'I',
	'?' => 'i',
	'?' => '',
	'?' => '',
	'?' => '',
	'?' => 'n',
	'?' => 'N',
	'?' => 'O',
	'?' => 'o',
	'?' => 'O',
	'?' => 'O',
	'?' => 'O',
	'?' => 'o',
	'?' => 'o',
	'?' => 'o',
	'?' => 'o',
	'?' => 's',
	'?' => 's',
	'?' => 'U',
	'?' => 'U',
	'?' => 'U',
	'?' => 'u',
	'?' => 'u',
	'?' => 'u',
	'?' => 'Y',
	'?' => 'y',
	'?' => 'Z', 
	'?' => 'z', 
	'?' => ''
	);
Reply With Quote