Sha256: 8a76eae7861b7c4dd1b25733801e4ac8c29cff6138051a0c3de802314a5c25fd
Contents?: true
Size: 673 Bytes
Versions: 18
Compression:
Stored size: 673 Bytes
Contents
## From: https://www.fileformat.info/info/unicode/char/a.htm ## From: https://stackoverflow.com/questions/7019034/utf-8-encoding-in-ruby-using-a-variable ## From: https://stackoverflow.com/questions/52654509/random-generate-a-valid-unicode-character-in-ruby ## latin # n1 = 0x192 # n2 = 0x687 ## ## weird punctuation # n1 = 0x133 # n2 = 0x255 # random_utf8 = Enumerator.new do |yielder| # loop do # yielder << ( rand(n2-n1)+n1 ).chr('UTF-8') # rescue RangeError # end # end # rendered_subject = "#{rendered_subject} #{ random_utf8.next }#{ random_utf8.next }"
Version data entries
18 entries across 18 versions & 1 rubygems