# Character formatting help

**URL:** <https://www.ruby-forum.com/t/character-formatting-help/186054>\
**Category:** Rails\
**Created:** [March 30, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/character-formatting-help/186054 "2010-03-30T23:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Downes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bb73d2/32.png) [@Nick\_Downes](https://www.ruby-forum.com/u/Nick_Downes)\
**Post date:** [March 30, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/character-formatting-help/186054/1 "2010-03-30T23:02:40Z")

</div>

Hi All,  
Two of my integration tests are failing because of the way the UKpound  
sign (£) is being rendered.  
My test expects a string to be returned (£10.00 x 5) = £50.00  
but when the test fails it shows that (\24310.00 x 5) = \24350.00 is  
expected and is failing because the string returned is (A£10.00 x 5) =  
A£50.00 - the A is a capital A with a ^ above it (is it called Capital  
A circumflex).

Elsewhere in the same test the £ sign in the expected string matches  
the £ sign returned which makes it more interesting.

The tests pass without problem when run locally but fail when run on  
my staging server (as shown above).  
I’m using NetBeans IDE6.5.1 as my development environment.

Needless to say I’m new at ROR.

Any ideas would be gratefully received

thanks Nick

---

<div class="post-metadata">

**Author:** ![Nick\_Downes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bb73d2/32.png) [@Nick\_Downes](https://www.ruby-forum.com/u/Nick_Downes)\
**Post date:** [March 31, 2010, 10:01am UTC](https://www.ruby-forum.com/t/character-formatting-help/186054/2 "2010-03-31T10:01:33Z")

</div>

Hi All,  
Problem solved thanks.

Nick
