# UTF-8 compliance in Rails

**URL:** <https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670>\
**Category:** Rails\
**Created:** [October 24, 2008, 8:34am UTC](https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670 "2008-10-24T08:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kiran1234](https://www.ruby-forum.com/u/kiran1234)\
**Post date:** [October 24, 2008, 8:34am UTC](https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670/1 "2008-10-24T08:34:00Z")

</div>

I have a issue with UTF-8 compliance… Any solutions?

---

<div class="post-metadata">

**Author:** ![kiran1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kiran1234](https://www.ruby-forum.com/u/kiran1234)\
**Post date:** [October 24, 2008, 11:42am UTC](https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670/2 "2008-10-24T11:42:11Z")

</div>

On Oct 24, 7:33 am, kiranH [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have a issue with UTF-8 compliance… Any solutions?

You’re going to have to give more details than that.

Fred

---

<div class="post-metadata">

**Author:** ![kiran1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kiran1234](https://www.ruby-forum.com/u/kiran1234)\
**Post date:** [November 4, 2008, 10:20am UTC](https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670/3 "2008-11-04T10:20:15Z")

</div>

Hi Fred,

I mean in a given message text posted or submitted in a form,  
special characters are inconsistently rendering.

I need to check whether this is a utf problem or an HTML entity  
management problem?

Thanks&Regards,  
Kiran.

On Oct 24, 2:41 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![kiran1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kiran1234](https://www.ruby-forum.com/u/kiran1234)\
**Post date:** [November 4, 2008, 11:14am UTC](https://www.ruby-forum.com/t/utf-8-compliance-in-rails/151670/4 "2008-11-04T11:14:18Z")

</div>

Kiran Soumya wrote:

> I mean in a given message text posted or submitted in a form,  
> special characters are inconsistently rendering.
> 
> I need to check whether this is a utf problem or an HTML entity  
> management problem?

Rails works well with UTF-8. When characters are rendering incorrectly  
after having been posted, 99% of the time it’s an encoding configuration  
with the database or an incorrect HTML content type declaration. Have  
you checked your database.yml and database encoding setup?

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
