需要高手来解决这个问题!!!(急急急急)(150分)

  • 主题发起人 主题发起人 tulpar
  • 开始时间 开始时间
T

tulpar

Unregistered / Unconfirmed
GUEST, unregistred user!
form 上 有一个memo. &nbsp; 它的内容是特殊一种文字(包括英文字符,数字和特殊符号)<br>&nbsp; &nbsp;如: memo 内容是 &amp;#Nn DEeF &nbsp;<br>&nbsp;能不能把memo内容转换成 &nbsp; #1575;#1592;#1588;#1608; &nbsp;#1585;#1586;#1605;#1570; <br>&nbsp;(需要完整的代码 !!!) &nbsp;<br>&nbsp;tulparmaster@eyou.com<br>//////////////////////////////////////////////<br>&nbsp; &nbsp;对应表如下<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;原字符 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 目标 <br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1592; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1575;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1592; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1575;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1577;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1577;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1608; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1588;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1584;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1573;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1609;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1585;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1586;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1605;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1570;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1583;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1606;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;j &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1606;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1606;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1578;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1578;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1578;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1576; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1576;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1576; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1589;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1589; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1589;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1582;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1582;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1582;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1582;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1580;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1580;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1580;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1580;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1581; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1581; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1581; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1581;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1593;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1593;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1593; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1574;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1574;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1574;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1610;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1610;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1610;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;~ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1610; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;V &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1602; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;W &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1602;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1602; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;S &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1601;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;U &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1601; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;T &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1601;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;O &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1594;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;P &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1594; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1594;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1594;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; / &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1603; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1603;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1590; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1590; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1579; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ` &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1579;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1605; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1605;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; G &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1587; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1605;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1607; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1607; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;M &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1588; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1604; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1604;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1604;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1571; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1571;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;H &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1587; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1587; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;J &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1587; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;K &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#1588;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1588;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #1572; &nbsp; &nbsp;<br><br>&nbsp; &nbsp;
 
既然是特殊文字,首先必须能够有识别规则,<br>才能有转换规则,<br>你好象未提这一点
 
我只需要 &nbsp;象&amp;#Nn DEeF &nbsp; 的内容<br>&nbsp; &nbsp; 转换#1575;#1592;#1588;#1608; &nbsp;#1585;#1586;#1605;#1570; 的代码!!!!<br>&nbsp; &nbsp;上面有对应表<br>&nbsp;
 
StringReplace<br><br>function StringReplace(const S, OldPattern, NewPattern: string;<br>&nbsp; Flags: TReplaceFlags): string;
 
下面是完整的源代码 <br>///////////////////////<br>uses StrUtils;<br>{$R *.dfm}<br>&nbsp;function TurnNumber(C: Char): String;<br>begin<br>&nbsp;case C of<br>&nbsp; &nbsp; &nbsp; '"' &nbsp;: Result:='&amp;#1592;';<br>&nbsp; &nbsp; &nbsp; '&amp;' &nbsp;: Result:='&amp;#1575;';<br>&nbsp; &nbsp; &nbsp; '#' &nbsp;: Result:='&amp;#1592;';<br>&nbsp; &nbsp; &nbsp; '''' &nbsp;: Result:='&amp;#1575;';<br>&nbsp; &nbsp; &nbsp; ' ' &nbsp;: Result:=' ';<br>&nbsp; &nbsp; &nbsp; '(' &nbsp;: Result:='&amp;#1577;';<br>&nbsp; &nbsp; &nbsp; ')' &nbsp;: Result:='&amp;#1577;';<br>&nbsp; &nbsp; &nbsp; 'n' &nbsp;: Result:='&amp;#1608;';<br>&nbsp; &nbsp; &nbsp; 'o' &nbsp;: Result:='&amp;#1584;';<br>&nbsp; &nbsp; &nbsp; 'p' &nbsp;: Result:='&amp;#1573;';<br>&nbsp; &nbsp; &nbsp; 'q' &nbsp;: Result:='&amp;#1609;';<br>&nbsp; &nbsp; &nbsp; 'D' &nbsp;: Result:='&amp;#1585;';<br>&nbsp; &nbsp; &nbsp; 'E' &nbsp;: Result:='&amp;#1586;';<br>&nbsp; &nbsp; &nbsp; 'F' &nbsp;: Result:='&amp;#1570;';<br>&nbsp; &nbsp; &nbsp; 'C' &nbsp;: Result:='&amp;#1583;';<br>&nbsp; &nbsp; &nbsp; 'i' &nbsp;: Result:='&amp;#1606;';<br>&nbsp; &nbsp; &nbsp; 'j' &nbsp;: Result:='&amp;#1606;';<br>&nbsp; &nbsp; &nbsp; 'k' &nbsp;: Result:='&amp;#1606;';<br>&nbsp; &nbsp; &nbsp; '2' &nbsp;: Result:='&amp;#1578;';<br>&nbsp; &nbsp; &nbsp; '3' &nbsp;: Result:='&amp;#1578;';<br>&nbsp; &nbsp; &nbsp; '4' &nbsp;: Result:='&amp;#1578;';<br>&nbsp; &nbsp; &nbsp; '*' &nbsp;: Result:='&amp;#1576;';<br>&nbsp; &nbsp; &nbsp; '+' &nbsp;: Result:='&amp;#1576;';<br>&nbsp; &nbsp; &nbsp; '-' &nbsp;: Result:='&amp;#1576;';<br>&nbsp; &nbsp; &nbsp; '/' &nbsp;: Result:='&amp;#1589;';<br>&nbsp; &nbsp; &nbsp; '0' &nbsp;: Result:='&amp;#1589;';<br>&nbsp; &nbsp; &nbsp; '1' &nbsp;: Result:='&amp;#1589;';<br>&nbsp; &nbsp; &nbsp; '&gt;' &nbsp;: Result:='&amp;#1582;';<br>&nbsp; &nbsp; &nbsp; '@' &nbsp;: Result:='&amp;#1582;';<br>&nbsp; &nbsp; &nbsp; 'A' &nbsp;: Result:='&amp;#1582;';<br>&nbsp; &nbsp; &nbsp; &nbsp;'5' &nbsp;: Result:='&amp;#1580;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '6' &nbsp;: Result:='&amp;#1580;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '7' &nbsp;: Result:='&amp;#1580;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '8' &nbsp;: Result:='&amp;#1580;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '9' &nbsp;: Result:='&amp;#1581;';<br>&nbsp; &nbsp; &nbsp; &nbsp; ':' &nbsp;: Result:='&amp;#1581;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '&lt;' &nbsp;: Result:='&amp;#1581;';<br>&nbsp; &nbsp; &nbsp; &nbsp; '=' &nbsp;: Result:='&amp;#1581;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'y' &nbsp;: Result:='&amp;#1593;';<br>&nbsp; &nbsp; &nbsp; &nbsp; 'z' &nbsp;: Result:='&amp;#1593;';<br>&nbsp; &nbsp; &nbsp; &nbsp; 'w' &nbsp;: Result:='&amp;#1593;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'u' &nbsp;: Result:='&amp;#1574;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'v' &nbsp;: Result:='&amp;#1574;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'s' &nbsp;: Result:='&amp;#1574;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'{' &nbsp;: Result:='&amp;#1610;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '|' &nbsp;: Result:='&amp;#1610;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '}' &nbsp;: Result:='&amp;#1610;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '~' &nbsp;: Result:='&amp;#1610;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'V' &nbsp;: Result:='&amp;#1602;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'W' &nbsp;: Result:='&amp;#1602;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'X' &nbsp;: Result:='&amp;#1602;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'S' &nbsp;: Result:='&amp;#1601;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'U' &nbsp;: Result:='&amp;#1601;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'T' &nbsp;: Result:='&amp;#1601;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'O' &nbsp;: Result:='&amp;#1594;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'P' &nbsp;: Result:='&amp;#1594;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Q' &nbsp;: Result:='&amp;#1594;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'R' &nbsp;: Result:='&amp;#1594;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'/' &nbsp;: Result:='&amp;#1603;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;']' &nbsp;: Result:='&amp;#1603;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Y' &nbsp;: Result:='&amp;#1590;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Z' &nbsp;: Result:='&amp;#1590;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'_' &nbsp;: Result:='&amp;#1579;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'`' &nbsp;: Result:='&amp;#1579;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'e' &nbsp;: Result:='&amp;#1605;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'f' &nbsp;: Result:='&amp;#1605;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'g' &nbsp;: Result:='&amp;#1605;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'h' &nbsp;: Result:='&amp;#1605;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'l' &nbsp;: Result:='&amp;#1607;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'m' &nbsp;: Result:='&amp;#1607;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'b' &nbsp;: Result:='&amp;#1604;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'c' &nbsp;: Result:='&amp;#1604;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'd' &nbsp;: Result:='&amp;#1604;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '$' &nbsp;: Result:='&amp;#1571;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '%' &nbsp;: Result:='&amp;#1571;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'G' &nbsp;: Result:='&amp;#1587;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'H' &nbsp;: Result:='&amp;#1587;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'I' &nbsp;: Result:='&amp;#1587;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'J' &nbsp;: Result:='&amp;#1587;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'K' &nbsp;: Result:='&amp;#1588;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'L' &nbsp;: Result:='&amp;#1588;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'M' &nbsp;: Result:='&amp;#1588;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'N' &nbsp;: Result:='&amp;#1588;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'r' &nbsp;: Result:='&amp;#1572;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 't' &nbsp;: Result:='&amp;#1574;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'x' &nbsp;: Result:='&amp;#1593;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'a' &nbsp;: Result:='&amp;#1578;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '[' &nbsp;: Result:='&amp;#1576;';<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '^' &nbsp;: Result:='&amp;#1589;';<br><br><br>&nbsp;end;<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>Var<br>&nbsp;I,J: Integer;<br>begin<br>&nbsp;MEMO2.Text:=TurnNumber(Memo1.Lines[0][1]);<br>&nbsp;for J:=0 to Memo1.Lines.Count-1 do<br>&nbsp; &nbsp;for I:=2 to Length(Memo1.Lines[J]) do<br>&nbsp; &nbsp; &nbsp;memo2.Text:=memo2.Text+TurnNumber(Memo1.Lines[J]);<br>&nbsp; &nbsp; &nbsp;end;<br><br><br><br>procedure TForm1.Button2Click(Sender: TObject);<br>var<br>&nbsp;i: Integer;<br>&nbsp; &nbsp;begin<br>&nbsp; &nbsp; &nbsp; for i:=0 to Memo1.Lines.Count-1 do<br>&nbsp;Memo1.Lines:=ReverseString(Memo1.Lines);<br>&nbsp; &nbsp; end;<br>end.<br>
 
看看这个把。<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br>as1,as2:string;<br>i,j:integer;<br>begin<br>&nbsp;as1:=memo1.Text;<br>&nbsp;as2:=''; <br>i:=length(as1);<br>&nbsp;for j:=0 to i &nbsp;do<br>&nbsp; begin<br>&nbsp; case as1[j] of<br>&nbsp; 'N':as2:=as2+'#1588';<br>&nbsp; 'n':as2:=as2+'#1608';<br>&nbsp; 'D':as2:=as2+'#1585';<br>&nbsp; 'E':as2:=as2+'#1586';<br>&nbsp; 'F':as2:=as2+'#1570';<br>&nbsp; '#':as2:=as2+'#1592';<br>&nbsp; ' ':as2:=as2+ ' '<br>&nbsp; else<br>&nbsp; &nbsp; as2:=as2;<br>&nbsp; end;<br>end;<br>&nbsp;memo2.Text:=as2;<br>end;
 
这么个简单问题也说要高手来解决
 
后退
顶部