вот так будет выходить utf-8
Regex rgx = new Regex(@"<head[\w\W]*head>");
Regex rgx2 = new Regex(@"(?<=charset ?= ?""?)[A-Za-z0-9\-]*?(?=[ "">])");
string head = project.Variables["head"].Value = rgx.Match(project.Variables["dom"].Value).Value;
project.Variables["charset"].Value =...
Вот c# код, работает быстро
Regex rgx = new Regex(@"<head[\w\W]*head>");
Regex rgx2 = new Regex(@"(?<=charset ?= ?""?)[A-Za-z0-9\-]*?(?=[ "">])");
string head = project.Variables["head"].Value = rgx.Match(project.Variables["dom"].Value).Value;
project.Variables["charset"].Value =...
если ты владелец зенки, то тогда сюда напиши, чтобы дали доступ http://zennolab.com/discussion/threads/poluchenie-dostupa-v-skrytyj-razdel-foruma.19346/page-13#post-167876