I would think it would be:
"✓".encode(:unicode)
But I think this is not the correct usage of .encode. And when I say:
"✓".encode('Unicode')
it cannot do the conversion.
U+2713 ✓ CHECK MARK.
Position the cursor where you want to insert the check mark symbol. Press Alt + 0252 or Alt + 0254 on the numeric keypad. If the sequence doesn't work, press NumLock on the numeric keypad.
is available two squares away from it (character code 254). Select the check mark you want. Click Insert.
If you're using Ruby 1.9 (which has much better built-in encoding support), you can do this:
> checkmark = "\u2713"
# => "✓"
> checkmark.encoding
# => #<Encoding:UTF-8>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With