From: Pat Kiatchaipipat Date: 2007-11-26T19:10:54+09:00 Subject: problem about read .txt file I have read text by this code message = "" file = File.new(fileDirectory , "r") while line = file.gets message = message+line end file.close puts message @textbox1.set_value(message) fileDirectory is a path of text file @textbox1 is textctrl that I want to show text in that file and I have problem, it can only read text file with Encoding UTF-8, it can't read from ANSI to show in textctrl (@textbox1) but puts message can show message normally with encode UTF-8 and ANSI now I have problem how I can show text with encode ANSI in @textbox1?? :'( -- Posted via http://www.ruby-forum.com/.