can not use AR to save french and japanese

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top