Skip to content
Conversion from iso-8859-15 (Latin9) to UTF-8
Ruby C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mrblib
src
test
.appveyor.yml
.codebeatsettings
.gitignore
.hound.yml
.rubocop.yml
.travis.yml
LICENSE
README.md
Rakefile
build_config.rb
mrbgem.rake

README.md

mruby-string-ext-latin9 Build Status Build status

Conversion from iso-8859-15 (Latin9) to UTF-8 for mruby.

puts "F\xf6rdertechnik".from_latin9
# => "Fördertechnik"

puts 'Fördertechnik'.to_latin9
# => "F\xf6rdertechnik"

Note: The lib does not check if the string is already UTF-8 encoded. Converting a UTF-8 string from Latin-9 to UTF-8 results into a bad encoding result. You can use mruby-string-is-utf8 for that.

Installation

Add the line below to your build_config.rb:

MRuby::Build.new do |conf|
  # ... (snip) ...
  conf.gem 'mruby-string-ext-latin9'
end

Or add this line to your aplication's mrbgem.rake:

MRuby::Gem::Specification.new('your-mrbgem') do |spec|
  # ... (snip) ...
  spec.add_dependency 'mruby-string-ext-latin9'
end

Development

Clone the repo:

$ git clone https://github.com/appplant/mruby-string-ext-latin9 && cd mruby-string-ext-latin9/

Compile the source:

$ rake compile

Run the tests:

$ rake test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/appplant/mruby-string-ext-latin9.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

  • Sebastián Katzer, Fa. appPlant GmbH

License

The mgem is available as open source under the terms of the MIT License.

Made with 😋 in Leipzig

© 2018 appPlant GmbH

You can’t perform that action at this time.