# Encoding

**URL:** <https://www.ruby-forum.com/t/encoding/111214>\
**Category:** Ruby\
**Created:** [August 3, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/encoding/111214 "2007-08-03T21:22:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flnative](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/5daacb/32.png) [@flnative](https://www.ruby-forum.com/u/flnative)\
**Post date:** [August 3, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/encoding/111214/1 "2007-08-03T21:22:53Z")

</div>

How can I encode a text with the characters &nbsp; or ö in readable  
text? The method unescapeHTML doesn’t solve this problem.

thanks for your answer…

---

<div class="post-metadata">

**Author:** ![flnative](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/5daacb/32.png) [@flnative](https://www.ruby-forum.com/u/flnative)\
**Post date:** [August 3, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/encoding/111214/2 "2007-08-03T22:40:05Z")

</div>

El Aug 3, 2007, a las 9:22 PM, M. R.  
escribió:

> How can I encode a text with the characters &nbsp; or ö in  
> readable  
> text? The method unescapeHTML doesn’t solve this problem.

Have a look at [http://htmlentities.rubyforge.org/](http://htmlentities.rubyforge.org/).

– fxn
