Re: [code] [textadept] Add encoding

From: A.M. Genaev <genaev.att.nioch.nsc.ru>
Date: Thu, 29 Aug 2013 11:19:15 +0700

> table.insert(io.encodings, 3, 'KOI8-R')
Yes! It works.

I add in my ~/.textadept/init.lua

table.insert(io.encodings, 3, 'KOI8-R')
function win()
    table.insert(io.encodings, 3, 'CP1251')
end

Now
ta test_KOI8-R # open file in KOI8-R
ta -e 'win()' test_CP1251 # open file in CP1251

Thank you very much

------------------------------------------
Dr. Alexander Genaev
Novosibirsk Institute of Organic Chemistry
Lavrentiev ave. 9, 630090 Novosibirsk, Russia
genaev.att.nioch.nsc.ru

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 29 Aug 2013 - 00:19:15 EDT

This archive was generated by hypermail 2.2.0 : Thu 29 Aug 2013 - 06:33:28 EDT