Pat Kiatchaipipat wrote:
> 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??

That sounds toolkit-specific.  What GUI library are you using?

-- 
Alex