From: Gabriel Lichard Date: 2010-11-11T07:01:26+09:00 Subject: Short question about encoding. 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 (√) inside 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 "√".encode("UTF-8") # converts it into a "v" puts "√" # -//- puts "√".force_encoding("UTF-8") # -//- Any ideas, please? -- Posted via http://www.ruby-forum.com/.