public function escapeJs($string, $encoding = 'utf-8') {
		
		$current = Escape :: getEncoding();
		Escape :: setEncoding($encoding);
		$result =  Escape :: js($string);
		Escape :: setEncoding($current);

		return $result;
	}