Hacker News new | ask | show | jobs
/I Considered Harmful (blog.pentesterlab.com)
4 points by pentesterlab 2271 days ago
1 comments

On the topic of case and unicode, it's also important to remember that, somewhat surprisingly, the number of characters can change when a change in case occurs:

  $ irb
  >> puts RUBY_VERSION
  2.6.5
  >> "ß".chars.size
  => 1
  >> "ß".upcase.chars.size
  => 2