I am trying to save Spanish characters to a MySQL database. In this example, I'm trying to save the character "ñ".

The database is collation "utf8_general_ci".
The table is collation "utf8_general_ci".
The field I'm writing to is collation "utf8_general_ci"
The file that the PHP code is written in is encoded UTF-8.

This works:
PHP Code:
mysql_query("UPDATE app_properties SET lan_coverage = 'Pi".chr(241)."on/Juniper' WHERE id = 1"); 
This doesn't work:
PHP Code:
mysql_query("UPDATE app_properties SET lan_coverage = 'Piñon/Juniper' WHERE id = 1"); 
Adding a SET NAMES call makes no difference:
PHP Code:
mysql_query("SET NAMES 'UTF-8'");
mysql_query("UPDATE app_properties SET lan_coverage = 'Piñon/Juniper' WHERE id = 1"); 
Any idea what could be going on here?