openstreetmap-website

https://github.com/openstreetmap/openstreetmap-website

Ruby

The Rails application that powers OpenStreetMap

UTF8.valid?

Checks that a string is valid UTF-8 by trying to convert it to UTF-8
using the iconv library, which is in the standard library.

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open lib/utf8.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-UTF8-valid--for-pr


# Commit to git

git add lib/utf8.rbgit commit -m "better docs for UTF8.valid?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-UTF8-valid--for-pr

hub pull-request


# Celebrate!