Doesn't VARCHAR(15) mean you can have up to 15 characters in the field? If so, why am I getting 'Data too long' error?
I insert my data as 123456789 with no problem,
but with ١٢٣٤٥٦٧٨٩ I get
Data too long for column 'customer_phone' at row 1
they have the same number of characters!
My table definition (partly):
+-------------------+---------------+------+-----+-------------------+--------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+---------------+------+-----+-------------------+---------------+
| id | int(11) | NO | PRI | NULL | auto_increment|
| customer_id | int(11) | NO | MUL | NULL | |
| customer_name | varchar(75) | YES | | NULL | |
| customer_phone | varchar(15) | YES | | NULL | |
| paid_amount | decimal(10,2) | NO | | NULL | |
| paid_currency | varchar(4) | NO | MUL | NULL | |
| ex_rate | decimal(8,2) | NO | | NULL | |
| date_time | datetime | NO | MUL | CURRENT_TIMESTAMP | |
| is_virtual | tinyint(1) | NO | | 0 | |
+-------------------+---------------+------+-----+-------------------+---------------+