english/libraries/joomla/filter/filteroutput.php
/**
	 * This method implements unicode slugs instead of transliteration.
	 *
	 * @param   string  $input   String to process
	 *
	 * @return  string  Processed string
	 * @since   11.1
	*/
This method implements unicode slugs instead of transliteration.
@param   string  $input   String to process

@return  string  Processed string
@since   11.1
This method implements unicode slugs instead of transliteration . @param string $input String to process @return string Processed string @since 11 . 1
public static function stringURLUnicodeSlug($string)
	{
		$str = preg_replace('/\xE3\x80\x80/', ' ', $string);
		$str = str_replace('-', ' ', $str);
		$str = preg_replace( '#[:\#\*"@+=;!&\.%()\]\/\'\\\\|\[]#',"\x20", $str );
		$str = str_replace('?', '', $str);
		$str = trim(JString::strtolower($str));
		$str =preg_replace('#\x20+#','-', $str);
		return $str;
	}
public static function stringURLUnicodeSlug ( $ string ) { $ str = preg_replace ( '/\xE3\x80\x80/' , ' ' , $ string ) ; $ str = str_replace ( '-' , ' ' , $ str ) ; $ str = preg_replace ( '#[:\#\*"@+=;!&\.%()\]\/\'\\\\|\[]#' , " \x20 " , $ str ) ; $ str = str_replace ( '?' , '' , $ str ) ; $ str = trim ( JString :: strtolower ( $ str ) ) ; $ str = preg_replace ( '#\x20+#' , '-' , $ str ) ; return $ str ; }
This method implements unicode slugs instead of transliteration.
This method implements unicode slugs instead of transliteration .
// Replace double byte whitespaces by single byte (East Asian languages) // Remove any '-' from the string as they will be used as concatenator. // Would be great to let the spaces in but only Firefox is friendly with this // Replace forbidden characters by whitespaces // Delete all '?' // Trim white spaces at beginning and end of alias and make lowercase // Remove any duplicate whitespace and replace whitespaces by hyphens