Форум: "Основная";
Текущий архив: 2006.06.18;
Скачать: [xml.tar.bz2];
ВнизПреобразов. спецсимволов (º &#239 ) в обычный текст (е, i) Найти похожие ветки
← →
allrussia (2006-05-09 20:49) [0]сабж
← →
allrusia (2006-05-09 20:52) [1]символы там целая таблица берутся в таком виде
º
ï
в результяте должны получаться обычные буквы (e, i)
← →
allrusia (2006-05-09 20:53) [2]символы там целая таблица берутся в таком виде
[code]
¼
ï
[/code]
в результате должны получаться обычные буквы (e, i)
← →
allrusia (2006-05-09 20:53) [3]не получается отобразить здесь символы вот здесь видно
http://www.rtfm.4hack.com/articles.php?id1=4&id2=29&PHPSESSID=6e31e7d634abb6ca77ac17a80c284d1d
← →
allrusia (2006-05-09 20:54) [4]ý
º
← →
allrusia (2006-05-09 20:55) [5]во получилось
← →
Yanis © (2006-05-09 21:13) [6]ждём продолжения :)
← →
balepa © (2006-05-10 07:25) [7]Сам с собой поговорил и все понял :)
← →
allrussia (2006-05-14 16:30) [8][text]
º
[/text]
← →
allrussia (2006-05-14 16:30) [9]
º
← →
allrusia (2006-05-14 16:31) [10]<TEXT>
º
</TEXT>
← →
allrusia (2006-05-14 16:35) [11]
function StringReplaceAll (text,byt,mot : string ) :string;
var
i : integer;
begin
while pos(byt,text) > 0 do
begin
i := pos(byt,text);
delete (text,i,length(byt));
insert (mot,text,i);
end;
result := text;
end;
function ReplaceSS (SS: string): string;
begin
SS := StringReplaceAll (SS, ‘&#34;", """);
SS := StringReplaceAll (SS, ‘&#38;", "&");
SS := StringReplaceAll (SS, ‘&#60;", "<");
SS := StringReplaceAll (SS, ‘&#62;", ">");
SS := StringReplaceAll (SS, ‘&#160;", " ");
SS := StringReplaceAll (SS, ‘&#161;", "!");
SS := StringReplaceAll (SS, ‘&#162;", "c");
SS := StringReplaceAll (SS, ‘&#163;", "$");
SS := StringReplaceAll (SS, ‘&#164;", "¤");
SS := StringReplaceAll (SS, ‘&#165;", "Y");
SS := StringReplaceAll (SS, ‘&#166;", "¦");
SS := StringReplaceAll (SS, ‘&#167;", "§");
SS := StringReplaceAll (SS, ‘&#169;", "©");
SS := StringReplaceAll (SS, ‘&#170;", "a");
SS := StringReplaceAll (SS, ‘&#171;", """);
SS := StringReplaceAll (SS, ‘&#172;", "");
SS := StringReplaceAll (SS, ‘&#173;", "");
SS := StringReplaceAll (SS, ‘&#174;", "®");
SS := StringReplaceAll (SS, ‘&#175;", "-");
SS := StringReplaceAll (SS, ‘&#176;", "°");
SS := StringReplaceAll (SS, ‘&#177;", "±");
SS := StringReplaceAll (SS, ‘&#178;", "2");
SS := StringReplaceAll (SS, ‘&#179;", "3");
SS := StringReplaceAll (SS, ‘&#180;", """");
SS := StringReplaceAll (SS, ‘&#181;", "µ");
SS := StringReplaceAll (SS, ‘&#182;", "");
SS := StringReplaceAll (SS, ‘&#183;", "•");
SS := StringReplaceAll (SS, ‘&#184;", ",");
SS := StringReplaceAll (SS, ‘&#185;", "1");
SS := StringReplaceAll (SS, ‘&#186;", "0");
SS := StringReplaceAll (SS, ‘&#187;", """);
SS := StringReplaceAll (SS, ‘&#188;", " 1/4");
SS := StringReplaceAll (SS, ‘&#189;", " 1/2");
SS := StringReplaceAll (SS, ‘&#190;", " 3/4");
SS := StringReplaceAll (SS, ‘&#191;", "?");
SS := StringReplaceAll (SS, ‘&#192;", "A");
SS := StringReplaceAll (SS, ‘&#193;", "A");
SS := StringReplaceAll (SS, ‘&#194;", "A");
SS := StringReplaceAll (SS, ‘&#195;", "A");
SS := StringReplaceAll (SS, ‘&#196;", "A");
SS := StringReplaceAll (SS, ‘&#197;", "A");
SS := StringReplaceAll (SS, ‘&#198;", "AE");
SS := StringReplaceAll (SS, ‘&#199;", "C");
SS := StringReplaceAll (SS, ‘&#200;", "E");
SS := StringReplaceAll (SS, ‘&#201;", "E");
SS := StringReplaceAll (SS, ‘&#202;", "E");
SS := StringReplaceAll (SS, ‘&#203;", "E");
SS := StringReplaceAll (SS, ‘&#204;", "I");
SS := StringReplaceAll (SS, ‘&#205;", "I");
SS := StringReplaceAll (SS, ‘&#206;", "I");
SS := StringReplaceAll (SS, ‘&#207;", "I");
SS := StringReplaceAll (SS, ‘&#208;", "D");
SS := StringReplaceAll (SS, ‘&#209;", "N");
SS := StringReplaceAll (SS, ‘&#210;", "O");
SS := StringReplaceAll (SS, ‘&#211;", "O");
SS := StringReplaceAll (SS, ‘&#212;", "O");
SS := StringReplaceAll (SS, ‘&#213;", "O");
SS := StringReplaceAll (SS, ‘&#214;", "O");
SS := StringReplaceAll (SS, ‘&#215;", "x");
SS := StringReplaceAll (SS, ‘&#216;", "O");
SS := StringReplaceAll (SS, ‘&#217;", "U");
SS := StringReplaceAll (SS, ‘&#218;", "U");
SS := StringReplaceAll (SS, ‘&#219;", "U");
SS := StringReplaceAll (SS, ‘&#220;", "U");
SS := StringReplaceAll (SS, ‘&#221;", "Y");
SS := StringReplaceAll (SS, ‘&#224;", "a");
SS := StringReplaceAll (SS, ‘&#225;", "a");
SS := StringReplaceAll (SS, ‘&#226;", "a");
SS := StringReplaceAll (SS, ‘&#227;", "a");
SS := StringReplaceAll (SS, ‘&#228;", "a");
SS := StringReplaceAll (SS, ‘&#229;", "a");
SS := StringReplaceAll (SS, ‘&#230;", "ae");
SS := StringReplaceAll (SS, ‘&#231;", "c");
SS := StringReplaceAll (SS, ‘&#232;", "e");
SS := StringReplaceAll (SS, ‘&#233;", "e");
SS := StringReplaceAll (SS, ‘&#234;", "e");
SS := StringReplaceAll (SS, ‘&#235;", "e");
SS := StringReplaceAll (SS, ‘&#236;", "i");
SS := StringReplaceAll (SS, ‘&#237;", "i");
SS := StringReplaceAll (SS, ‘&#238;", "i");
SS := StringReplaceAll (SS, ‘&#239;", "i");
SS := StringReplaceAll (SS, ‘&#240;", "d");
SS := StringReplaceAll (SS, ‘&#241;", "n");
SS := StringReplaceAll (SS, ‘&#242;", "o");
SS := StringReplaceAll (SS, ‘&#243;", "o");
SS := StringReplaceAll (SS, ‘&#244;", "o");
SS := StringReplaceAll (SS, ‘&#245;", "o");
SS := StringReplaceAll (SS, ‘&#246;", "o");
SS := StringReplaceAll (SS, ‘&#247;", "/");
SS := StringReplaceAll (SS, ‘&#248;", "o");
SS := StringReplaceAll (SS, ‘&#249;", "u");
SS := StringReplaceAll (SS, ‘&#250;", "u");
SS := StringReplaceAll (SS, ‘&#251;", "u");
SS := StringReplaceAll (SS, ‘&#252;", "u");
SS := StringReplaceAll (SS, ‘&#253;", "y");
SS := StringReplaceAll (SS, ‘&#255;", "y");
Result:= SS;
end;
← →
allrusia (2006-05-14 16:37) [12]таким образом строка типа
"Rosa Mª Sardà" преобразуется в Rosa Ma Sarda
ну и т.д.
← →
allrusia (2006-05-14 16:39) [13]а не в "Rosa M? Sard?" еси скопировать из html в обычный текст
Страницы: 1 вся ветка
Форум: "Основная";
Текущий архив: 2006.06.18;
Скачать: [xml.tar.bz2];
Память: 0.48 MB
Время: 0.011 c