ruby-html-entities is a Ruby library to convert non-ASCII characters to character entity references in a hope that those characters are properly displayed in HTML pages of non-European encoding.