I have a cfinvoke:
<cfinvoke component="cfcs.people" method="getPerson">
<cfinvokeargument name="name" value="José">
</cfinvoke>
And a function:
<cffunction name="getPerson" access="remote" returntype="any">
<cfargument name="name" type="string">
<cfquery name="qry" datasource="#datasource#">
SELECT id
FROM people
WHERE name = <cfqueryparam value="#name#" cfsqltype="CF_SQL_NVARCHAR">
</cfquery>
<cfreturn qry>
</cffunction>
I have a row in the people
table with a name
of "José", however the cfinvoke does not return this row. Any name that does not contain a special character works, but any name with a special character returns no rows.
What is causing special characters to break the SELECT, and what can I do to fix it?