# Request.raw\_post

**URL:** <https://www.ruby-forum.com/t/request-raw-post/92158>\
**Category:** Rails\
**Created:** [April 16, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/request-raw-post/92158 "2007-04-16T18:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 16, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/request-raw-post/92158/1 "2007-04-16T18:32:12Z")

</div>

Hi,

how can I un-encode the contents of request.raw\_post back into a normal  
string of text, without all the %20’s and such?

Cheers,

Mick

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 16, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/request-raw-post/92158/2 "2007-04-16T19:03:12Z")

</div>

The most straightforward way would be to do some kind of gsub to fix all  
the formatting, but Im sure there are better fixes.
