# Reopen JRUBY-6288 'incompatible character encodings: ASCII-8BIT and UTF-8'

**URL:** <https://www.ruby-forum.com/t/reopen-jruby-6288-incompatible-character-encodings-ascii-8bit-and-utf-8/224363>\
**Category:** JRuby\
**Created:** [November 8, 2012, 11:54pm UTC](https://www.ruby-forum.com/t/reopen-jruby-6288-incompatible-character-encodings-ascii-8bit-and-utf-8/224363 "2012-11-08T23:54:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 8, 2012, 11:54pm UTC](https://www.ruby-forum.com/t/reopen-jruby-6288-incompatible-character-encodings-ascii-8bit-and-utf-8/224363/1 "2012-11-08T23:54:12Z")

</div>

Hi,

I was wondering if someone could take a look at ticketJRUBY-6288and  
hopefully reopenit. I’ve added a couple of new comments.

[http://jira.codehaus.org/browse/JRUBY-6288](http://jira.codehaus.org/browse/JRUBY-6288)

Encoding::CompatibilityError: incompatible character encodings: UTF-8  
and ASCII-8BIT  
from org/jruby/RubyString.java:3014:in `gsub’

We have run into this in a couple of other cases and reworked the code  
to avoid it, but it seems worth looking in to. As noted in the defect it  
only happens with JRuby, not MRI.

Thanks,  
Tom
