Fetch entries with special characters in title When trying to fetch an entry with special characters in the title, it doesn't seem to match.

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;title = "Title,with,commas";
$entry = $criteria-&gt;first();


I've also tried a few other characters such as #, %, and $ with the same result - $entry is empty.
Have a look at DbHelper::parseParam docs:


  If the $value is a string, it will automatically be converted to an array, split on any commas within the string (via ArrayHelper::stringToArray()). If that is not desired behavior, you can escape the comma with a backslash before it.


To escape the comma and other characters treated as special in DbHelper::parseParam use the DbHelper::escapeParam helper:

$criteria-&gt;title = DbHelper::escapeParam("Title, with, commas");