# Wrong file encoding for date.rb on ubuntu

**URL:** <https://www.ruby-forum.com/t/wrong-file-encoding-for-date-rb-on-ubuntu/150684>\
**Category:** Ruby\
**Created:** [October 11, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/wrong-file-encoding-for-date-rb-on-ubuntu/150684 "2008-10-11T12:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schorsch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e0b2c6/32.png) [@schorsch](https://www.ruby-forum.com/u/schorsch)\
**Post date:** [October 11, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/wrong-file-encoding-for-date-rb-on-ubuntu/150684/1 "2008-10-11T12:55:31Z")

</div>

After upgrading ruby via ubuntu package manager the encoding of the  
date.rb seems to be wrong, so there are a whole bunch of strange chars  
inside the file.

OS Ubuntu hardy

ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

I dont know where this issue is comming from. Maybe it is related to my  
german ubuntu setup or to some fileencoding changes in the ubuntu or  
ruby repos.  
I had a similar issue a month ago with a file from a gem (forgot where  
it was)

I opened the date.rb in geany and it says the encoding is iso. To fix  
the issue i went onto a windows virtualbox and opened the date.rb (from  
win ruby install) with notepad++ and copied the utf-8 encoded content  
into my lokal date.rb

Posting this issue here to see whether or not i`m the only one.
