From: David Springer Date: 2010-03-27T05:24:30+09:00 Subject: Re: character encoding question try something like this: ------------------------------------- require 'cgi' s="UPPERCASE Russian Alphabet\n".encode('utf-8') s+=CGI.unescapeHTML("АБВГ".encode('utf-8')) s+=CGI.unescapeHTML("ДЕЖЗ".encode('utf-8')) s+=CGI.unescapeHTML("ИЙКЛ".encode('utf-8')) s+=CGI.unescapeHTML("МНОП".encode('utf-8')) s+=CGI.unescapeHTML("РСТУ".encode('utf-8')) s+=CGI.unescapeHTML("ФХЦЧ".encode('utf-8')) s+=CGI.unescapeHTML("ШЩЪЫ".encode('utf-8')) s+=CGI.unescapeHTML("ЬЭЮЯ".encode('utf-8')) puts s ------------------------------------- David -- Posted via http://www.ruby-forum.com/.