G
Gabriel Lichard
Hello everybody at the Ruby Forums!
After getting more into Ruby I stumbled across a little problem: how
would I go about making a string with a "square root" sign (=E2=88=9A) in=
side
it, so that it gets encoded in UTF-8 and so that I can later save it in
a file?
Also, I read that Ruby does have encoding-related issues, so, if that's
the case, I can probably live without the "square root" sign.
puts "=E2=88=9A".encode("UTF-8") # converts it into a "v"
puts "=E2=88=9A" # -//-
puts "=E2=88=9A".force_encoding("UTF-8") # -//-
Any ideas, please?
-- =
Posted via http://www.ruby-forum.com/.=
After getting more into Ruby I stumbled across a little problem: how
would I go about making a string with a "square root" sign (=E2=88=9A) in=
side
it, so that it gets encoded in UTF-8 and so that I can later save it in
a file?
Also, I read that Ruby does have encoding-related issues, so, if that's
the case, I can probably live without the "square root" sign.
puts "=E2=88=9A".encode("UTF-8") # converts it into a "v"
puts "=E2=88=9A" # -//-
puts "=E2=88=9A".force_encoding("UTF-8") # -//-
Any ideas, please?
-- =
Posted via http://www.ruby-forum.com/.=