I have letters with macrons such as ū
, which I would like to store in a MySQL MyISAM table. The table is set to UTF-8
with utf8_swedish_ci collation
. However, no matter what I do, the character is replaced by a question mark.
Here's what I've tried so far:
- Used Sequel Pro to edit the row in which one of the fields contains the macron, and to enter the query manually. (Result: '?')
- Changed
collation
tounicode
, general, and bin, respectively. (Result: either '?' or that the row can't even be saved.) - Used the terminal (OS X, bash, set to UTF-8) to enter the query manually. (Result: '?')
- Tried using PHP, since the table is going to be part by a web app. PHP recognizes the character just fine if, for instance, I save the script in
UTF-8
encoding and use regular expressions on it - but it still can't save it to the table. (Result: '?')
I could save it as ū
instead, but I'd rather not if possible. Any help greatly appreciated. :)