Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Seamless integration of character encodings into Ruby’s String class
C Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext/encoding/character/utf-8
lib/encoding/character
specifications
tests
.gitignore
README
Rakefile

README

To compile:

$ rake

To test:

$ rake spec

Take a look at the files in “specifications” to see some examples of how to
load the library and use the methods.

It’s basically the following:

require 'encoding/character/utf-8'

str = +"äbc"
str_that_is_the_same_as_previous_str = u"äbc"

There’s no install task yet, so until then, just load Ruby as follows:

$ ruby -Ilib:ext

and you’ll be able to require the library as shown above.

I’ll try to learn Ruby Gems tonight, so hopefully there’ll be a way to install
this library as a gem by tomorrow!
Something went wrong with that request. Please try again.