From: Bhavesh Sharma Date: 2011-08-17T03:47:43+09:00 Subject: Re: How to send utf8 data to remote computer in ruby 1.9.2 Hi Brian, Thanks for your inputs. I tried the way you mentioned : issueCommandInKazBox($node1, "add user âêžýáíúöóá¿ role admin".force_encoding("ASCII-8BIT"), "") And it worked :) I still surprise why it is not working when i use utg8 instead of ascii-8bit i.e. issueCommandInKazBox($node1, "add user âêžýáíúöóá¿ role admin".force_encoding("UTF-8"), "") Thanks for your input again. Bhavesh -- Posted via http://www.ruby-forum.com/.