# Is jcode library supported in Ruby1.9.1?

**URL:** <https://www.ruby-forum.com/t/is-jcode-library-supported-in-ruby1-9-1/184275>\
**Category:** Ruby\
**Created:** [February 27, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/is-jcode-library-supported-in-ruby1-9-1/184275 "2010-02-27T20:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kareem\_Abd-Elmageed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d6d6ee/32.png) [@Kareem\_Abd-Elmageed](https://www.ruby-forum.com/u/Kareem_Abd-Elmageed)\
**Post date:** [February 27, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/is-jcode-library-supported-in-ruby1-9-1/184275/1 "2010-02-27T20:19:09Z")

</div>

hi ,  
is jcode supported in Ruby1.9.1 ?  
and if it dosen’t supported how we can specify the character encoding to  
uses in rb file ?

---

<div class="post-metadata">

**Author:** ![Kareem\_Abd-Elmageed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d6d6ee/32.png) [@Kareem\_Abd-Elmageed](https://www.ruby-forum.com/u/Kareem_Abd-Elmageed)\
**Post date:** [March 1, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/is-jcode-library-supported-in-ruby1-9-1/184275/2 "2010-03-01T17:35:49Z")

</div>

On Sun, Feb 28, 2010 at 4:18 AM, Kareem Abd-Elmageed  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi ,  
> is jcode supported in Ruby1.9.1 ?  
> and if it dosen’t supported how we can specify the character encoding to  
> uses in rb file ?

It was deprecated.  
You usually set the encoding at the top of your file, with a magic  
comment like:

# Encoding: UTF-8

For more information about the new encoding features of 1.9, see  
[http://blog.grayproductions.net/articles/understanding\_m17n](http://blog.grayproductions.net/articles/understanding_m17n)
