# Encoding Problem (I think)

**URL:** <https://www.ruby-forum.com/t/encoding-problem-i-think/207613>\
**Category:** Ruby\
**Created:** [May 30, 2011, 6:03am UTC](https://www.ruby-forum.com/t/encoding-problem-i-think/207613 "2011-05-30T06:03:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 30, 2011, 6:03am UTC](https://www.ruby-forum.com/t/encoding-problem-i-think/207613/1 "2011-05-30T06:03:28Z")

</div>

I’ve been trying to figure out why gash won’t work under Ruby 1.9. I  
posted this issue:

[1.9 Error · Issue #4 · judofyr/gash · GitHub](https://github.com/judofyr/gash/issues/4)

In brief, it looks like strings contain “\x00” where as under Ruby 1.8  
those were “\000” instead.

Am I right then that this is an encoding error, and if so how in the  
word do I fix it? I.e. how do I get "\000"s back?

Thanks.

---

<div class="post-metadata">

**Author:** ![tcsnide](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Post date:** [May 30, 2011, 6:09am UTC](https://www.ruby-forum.com/t/encoding-problem-i-think/207613/2 "2011-05-30T06:09:37Z")

</div>

I aways have encoding problems doing screen scrapping, and I’m  
interested in better solutions, but sometimes iconv helps me.

Att  
Thiago Alessio

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![tcsnide](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Post date:** [May 30, 2011, 8:49am UTC](https://www.ruby-forum.com/t/encoding-problem-i-think/207613/3 "2011-05-30T08:49:59Z")

</div>

Hi,

In message “Re: Encoding Problem (I think)”  
on Mon, 30 May 2011 13:02:59 +0900, Intransition  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:  
|  
|I’ve been trying to figure out why gash won’t work under Ruby 1.9. I  
|posted this issue:  
|  
| [1.9 Error · Issue #4 · judofyr/gash · GitHub](https://github.com/judofyr/gash/issues/4)  
|  
|In brief, it looks like strings contain “\x00” where as under Ruby 1.8  
|those were “\000” instead.  
|  
|Am I right then that this is an encoding error, and if so how in the  
|word do I fix it? I.e. how do I get "\000"s back?

I don’t call it an “encoding error”, but I admit it is  
incompatibility. I am not sure where we should fix. Need more  
investigation.

```
          matz.

```
