W
Wen Lan
hi, all
i had a strange problem that i can not use ActiveRecord to save french
and japanese.
i use Tmail and mms2r to parse a mail, and i have a mail model in the
db, the mail model has a txt_body column.
After i had fetched the mail from mail server and parse the mail, i set
the txt_body with the value of the mail's body. I found that i could not
save the french and japanese correctly.
for example, if the mail body contains "français français français", i
just get "fran" in the db, losing the remaim characters, that is "çais
français français".
the same as japanese.
i had setted my db to use utf-8.
any advise?
i had a strange problem that i can not use ActiveRecord to save french
and japanese.
i use Tmail and mms2r to parse a mail, and i have a mail model in the
db, the mail model has a txt_body column.
After i had fetched the mail from mail server and parse the mail, i set
the txt_body with the value of the mail's body. I found that i could not
save the french and japanese correctly.
for example, if the mail body contains "français français français", i
just get "fran" in the db, losing the remaim characters, that is "çais
français français".
the same as japanese.
i had setted my db to use utf-8.
any advise?