# How can i use AR to save french and japanese?

**URL:** <https://www.ruby-forum.com/t/how-can-i-use-ar-to-save-french-and-japanese/196801>\
**Category:** Rails I18n\
**Created:** [September 9, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/how-can-i-use-ar-to-save-french-and-japanese/196801 "2008-09-09T16:24:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feeling3\_4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecb155/32.png) [@feeling3\_4](https://www.ruby-forum.com/u/feeling3_4)\
**Post date:** [September 9, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/how-can-i-use-ar-to-save-french-and-japanese/196801/1 "2008-09-09T16:24:25Z")

</div>

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?
