# Apostrophe display issue in view file

**URL:** <https://www.ruby-forum.com/t/apostrophe-display-issue-in-view-file/171433>\
**Category:** Rails\
**Created:** [July 2, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/apostrophe-display-issue-in-view-file/171433 "2009-07-02T13:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [July 2, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/apostrophe-display-issue-in-view-file/171433/1 "2009-07-02T13:40:44Z")

</div>

Hi folks,

I have some user name with Apostrophe, where these names are displayed  
in view files with some unwanted characters instead of Apostrophe.

For example,

Bottom’s Profile page is the original string and it is displaying in  
browser like this.

BottomnÃ¢â‚¬â„¢s Profile page.

Can any one suggest how to overcome this, or how to identify this  
special character.

FYI, this “Bottom’s Profile page” input is entered from a Mac notebook,  
where I tried the same from Windows PC and that was displayed properly.  
Seems in Mac and in some other OS this Apostrophe character is not  
supported well.

Any suggestions are welcome, Thanks in advance.

Regards,  
Veeraa

---

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [July 2, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/apostrophe-display-issue-in-view-file/171433/2 "2009-07-02T14:38:18Z")

</div>

On Jul 2, 7:40 am, Veera S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi folks,
> 
> I have some user name with Apostrophe, where these names are displayed  
> in view files with some unwanted characters instead of Apostrophe.

It’s probably because your apostropke is actually not a normal  
apostrophe but one of word’s fancy curly quote things.

Fred

---

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [July 2, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/apostrophe-display-issue-in-view-file/171433/3 "2009-07-02T15:19:09Z")

</div>

Veera S. wrote:  
[…]

> FYI, this “Bottom’s Profile page” input is entered from a Mac notebook,  
> where I tried the same from Windows PC and that was displayed properly.  
> Seems in Mac and in some other OS this Apostrophe character is not  
> supported well.

The character is supported just fine, but you need to make sure that  
you’re using the correct character encoding for storage and display –  
otherwise you’ll have problems like what you’re seeing. Declare UTF-8  
encoding in your HTML element and you should be OK.

> Any suggestions are welcome, Thanks in advance.
> 
> Regards,  
> Veeraa

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
