search for: kinda_lovely_login

Displaying 1 result from an estimated 1 matches for "kinda_lovely_login".

2005 Dec 21
10
Investigating Unicode. Take 2, with nastities and allegations.
...work, right? Well, it will. The Unicode standard, as of now, comprises 26 (!) characters which can be considered "whitespace". 26, that is, when used inside a string - when it''s at the boundaries it gets 27 (including the zero-width space AKA BOM). So let''s try: kinda_lovely_login = [ 0x0020, # White_Space # Zs SPACE 0x00A0, # White_Space # Zs NO-BREAK SPACE 0x202F, # White_Space # Zs NARROW NO-BREAK SPACE ].pack("U*") And lo and behold... User.new(:login=>kinda_lovely_login).save! Nic...