Hi, 2006/7/10, xTRiM <rtokarev / gmail.com>: > Hello, > > is there any way, to detect text encoding? > For example, is it in utf8, or in win1251, or something else. > You can use the standard lib NKF's guess or guess2 (ruby 1.8.2 or later) method for that. Look up the NKF section in http://www.ruby-doc.org/stdlib/. Takashi Sano