Skip to content

Conversation

xiaods
Copy link

@xiaods xiaods commented Jan 8, 2012

please have a look on this request.thank for your hits.

@ianwhite
Copy link
Owner

Hi Deshi,

Thanks for this.

I'm a complete n00b at encoding issues. I'm currently trying to run the specs, and I'm getting either ASCII bail outs, or after adding

encoding: utf-8

to the relevant files, I'm getting:

Encoding::CompatibilityError:
incompatible character encodings: ASCII-8BIT and UTF-8

Can you give me a pointer on getting the specs running please?

Cheers,
Ian

@xiaods
Copy link
Author

xiaods commented Jan 11, 2012

could you please remove this code,and have a try to run rspec again.

  • it "should support chinese comma" do
  • truncate_html("年,,年,,年,,年,,年,,",6).should == "年,…"
  • end

i think that your system have not install Chinese encode library, my environment is fedora 16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants