现在要把字符串中所有这类符号转化为相应的编码字符串.
请问大侠如何实现,听说有API函数.
不能用MFC,最好有例子.
多谢了.

解决方案 »

  1.   

    比如:
    ASCII Entities with new Entity NamesResult Description      Entity Name     Entity Number 
    "      quotation    "          " 
    '      apostrophe       '          (does not work in IE) ' 
    &      ampersand        &           & 
    <      less-than        &lt;            &#60; 
    >      greater-than     &gt;            &#62; 
      

  2.   

    use InternetCanonicalizeUrl or System::Web::UI::HtmlTextWriter
    See also
    http://msdn.microsoft.com/library/en-us/vclib/html/vclrfATLServerEncodingReference.asp