Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 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>
&#186;
</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, ‘&amp;#34;", """);
SS := StringReplaceAll (SS, ‘&amp;#38;", "&amp;");
SS := StringReplaceAll (SS, ‘&amp;#60;", "<");
SS := StringReplaceAll (SS, ‘&amp;#62;", ">");
SS := StringReplaceAll (SS, ‘&amp;#160;", " ");
SS := StringReplaceAll (SS, ‘&amp;#161;", "!");
SS := StringReplaceAll (SS, ‘&amp;#162;", "c");
SS := StringReplaceAll (SS, ‘&amp;#163;", "$");
SS := StringReplaceAll (SS, ‘&amp;#164;", "¤");
SS := StringReplaceAll (SS, ‘&amp;#165;", "Y");
SS := StringReplaceAll (SS, ‘&amp;#166;", "¦");
SS := StringReplaceAll (SS, ‘&amp;#167;", "§");
SS := StringReplaceAll (SS, ‘&amp;#169;", "©");
SS := StringReplaceAll (SS, ‘&amp;#170;", "a");
SS := StringReplaceAll (SS, ‘&amp;#171;", """);
SS := StringReplaceAll (SS, ‘&amp;#172;", "");
SS := StringReplaceAll (SS, ‘&amp;#173;", "­");
SS := StringReplaceAll (SS, ‘&amp;#174;", "®");
SS := StringReplaceAll (SS, ‘&amp;#175;", "-");
SS := StringReplaceAll (SS, ‘&amp;#176;", "°");
SS := StringReplaceAll (SS, ‘&amp;#177;", "±");
SS := StringReplaceAll (SS, ‘&amp;#178;", "2");
SS := StringReplaceAll (SS, ‘&amp;#179;", "3");
SS := StringReplaceAll (SS, ‘&amp;#180;", """");
SS := StringReplaceAll (SS, ‘&amp;#181;", "µ");
SS := StringReplaceAll (SS, ‘&amp;#182;", "");
SS := StringReplaceAll (SS, ‘&amp;#183;", "•");
SS := StringReplaceAll (SS, ‘&amp;#184;", ",");
SS := StringReplaceAll (SS, ‘&amp;#185;", "1");
SS := StringReplaceAll (SS, ‘&amp;#186;", "0");
SS := StringReplaceAll (SS, ‘&amp;#187;", """);
SS := StringReplaceAll (SS, ‘&amp;#188;", " 1/4");
SS := StringReplaceAll (SS, ‘&amp;#189;", " 1/2");
SS := StringReplaceAll (SS, ‘&amp;#190;", " 3/4");
SS := StringReplaceAll (SS, ‘&amp;#191;", "?");
SS := StringReplaceAll (SS, ‘&amp;#192;", "A");
SS := StringReplaceAll (SS, ‘&amp;#193;", "A");
SS := StringReplaceAll (SS, ‘&amp;#194;", "A");
SS := StringReplaceAll (SS, ‘&amp;#195;", "A");
SS := StringReplaceAll (SS, ‘&amp;#196;", "A");
SS := StringReplaceAll (SS, ‘&amp;#197;", "A");
SS := StringReplaceAll (SS, ‘&amp;#198;", "AE");
SS := StringReplaceAll (SS, ‘&amp;#199;", "C");
SS := StringReplaceAll (SS, ‘&amp;#200;", "E");
SS := StringReplaceAll (SS, ‘&amp;#201;", "E");
SS := StringReplaceAll (SS, ‘&amp;#202;", "E");
SS := StringReplaceAll (SS, ‘&amp;#203;", "E");
SS := StringReplaceAll (SS, ‘&amp;#204;", "I");
SS := StringReplaceAll (SS, ‘&amp;#205;", "I");
SS := StringReplaceAll (SS, ‘&amp;#206;", "I");
SS := StringReplaceAll (SS, ‘&amp;#207;", "I");
SS := StringReplaceAll (SS, ‘&amp;#208;", "D");
SS := StringReplaceAll (SS, ‘&amp;#209;", "N");
SS := StringReplaceAll (SS, ‘&amp;#210;", "O");
SS := StringReplaceAll (SS, ‘&amp;#211;", "O");
SS := StringReplaceAll (SS, ‘&amp;#212;", "O");
SS := StringReplaceAll (SS, ‘&amp;#213;", "O");
SS := StringReplaceAll (SS, ‘&amp;#214;", "O");
SS := StringReplaceAll (SS, ‘&amp;#215;", "x");
SS := StringReplaceAll (SS, ‘&amp;#216;", "O");
SS := StringReplaceAll (SS, ‘&amp;#217;", "U");
SS := StringReplaceAll (SS, ‘&amp;#218;", "U");
SS := StringReplaceAll (SS, ‘&amp;#219;", "U");
SS := StringReplaceAll (SS, ‘&amp;#220;", "U");
SS := StringReplaceAll (SS, ‘&amp;#221;", "Y");
SS := StringReplaceAll (SS, ‘&amp;#224;", "a");
SS := StringReplaceAll (SS, ‘&amp;#225;", "a");
SS := StringReplaceAll (SS, ‘&amp;#226;", "a");
SS := StringReplaceAll (SS, ‘&amp;#227;", "a");
SS := StringReplaceAll (SS, ‘&amp;#228;", "a");
SS := StringReplaceAll (SS, ‘&amp;#229;", "a");
SS := StringReplaceAll (SS, ‘&amp;#230;", "ae");
SS := StringReplaceAll (SS, ‘&amp;#231;", "c");
SS := StringReplaceAll (SS, ‘&amp;#232;", "e");
SS := StringReplaceAll (SS, ‘&amp;#233;", "e");
SS := StringReplaceAll (SS, ‘&amp;#234;", "e");
SS := StringReplaceAll (SS, ‘&amp;#235;", "e");
SS := StringReplaceAll (SS, ‘&amp;#236;", "i");
SS := StringReplaceAll (SS, ‘&amp;#237;", "i");
SS := StringReplaceAll (SS, ‘&amp;#238;", "i");
SS := StringReplaceAll (SS, ‘&amp;#239;", "i");
SS := StringReplaceAll (SS, ‘&amp;#240;", "d");
SS := StringReplaceAll (SS, ‘&amp;#241;", "n");
SS := StringReplaceAll (SS, ‘&amp;#242;", "o");
SS := StringReplaceAll (SS, ‘&amp;#243;", "o");
SS := StringReplaceAll (SS, ‘&amp;#244;", "o");
SS := StringReplaceAll (SS, ‘&amp;#245;", "o");
SS := StringReplaceAll (SS, ‘&amp;#246;", "o");
SS := StringReplaceAll (SS, ‘&amp;#247;", "/");
SS := StringReplaceAll (SS, ‘&amp;#248;", "o");
SS := StringReplaceAll (SS, ‘&amp;#249;", "u");
SS := StringReplaceAll (SS, ‘&amp;#250;", "u");
SS := StringReplaceAll (SS, ‘&amp;#251;", "u");
SS := StringReplaceAll (SS, ‘&amp;#252;", "u");
SS := StringReplaceAll (SS, ‘&amp;#253;", "y");
SS := StringReplaceAll (SS, ‘&amp;#255;", "y");
Result:= SS;
end;



 
allrusia   (2006-05-14 16:37) [12]

таким образом строка типа
"Rosa M&#170; Sard&#224;" преобразуется в 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
15-1147685730
SamProf
2006-05-15 13:35
2006.06.18
Не могу поставит Delphi 8


15-1147792365
Копир
2006-05-16 19:12
2006.06.18
Здравствуйте товарищи!


5-1133515534
Tonich
2005-12-02 12:25
2006.06.18
TDateTimePicker


2-1148882517
Belorus
2006-05-29 10:01
2006.06.18
DLL


2-1148990487
Std
2006-05-30 16:01
2006.06.18
Напоминалка





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский