/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

+2

public static string Utf8Iso(string vsStr)
{
    string strTemp;
    strTemp = vsStr;

    strTemp = strTemp.Replace("ç", "ç");
    strTemp = strTemp.Replace("ä§", "ç");
    strTemp = strTemp.Replace("é", "é");
    strTemp = strTemp.Replace("ä©", "é");
    strTemp = strTemp.Replace("è", "è");
    strTemp = strTemp.Replace("ä¨", "è");
    strTemp = strTemp.Replace("ê", "ê");
    strTemp = strTemp.Replace("äª", "ê");
    strTemp = strTemp.Replace("ë", "ë");
    strTemp = strTemp.Replace("ä«", "ë");
    strTemp = strTemp.Replace("Ê", "Ê");
    strTemp = strTemp.Replace("äŠ", "Ê");
    strTemp = strTemp.Replace("Ë", "Ë");
    strTemp = strTemp.Replace("ä‹", "Ë");
    strTemp = strTemp.Replace("î", "î");
    strTemp = strTemp.Replace("ä®", "î");
    strTemp = strTemp.Replace("ï", "ï");
    strTemp = strTemp.Replace("ä¯", "ï");
    strTemp = strTemp.Replace("ì", "ì");
    strTemp = strTemp.Replace("ÃŽ", "Î");
    strTemp = strTemp.Replace("äŽ", "Î");
    strTemp = strTemp.Replace("ò", "ò");
    strTemp = strTemp.Replace("ä²", "ò");
    strTemp = strTemp.Replace("ô", "ô");
    strTemp = strTemp.Replace("ä´", "ô");
    strTemp = strTemp.Replace("ö", "ö");
    strTemp = strTemp.Replace("ä¶", "ö");
    strTemp = strTemp.Replace("õ", "õ");
    strTemp = strTemp.Replace("ó", "ó");
    strTemp = strTemp.Replace("ø", "ø");
    strTemp = strTemp.Replace("äµ", "õ");
    strTemp = strTemp.Replace("ä³", "ó");
    strTemp = strTemp.Replace("ä¸", "ø");
    strTemp = strTemp.Replace(@"Ã""", "Ô");
    strTemp = strTemp.Replace(@"ä""", "Ô");
    strTemp = strTemp.Replace("Ö", "Ö");
    strTemp = strTemp.Replace("ä–", "Ö");
    strTemp = strTemp.Replace("Ã ", "à");
    strTemp = strTemp.Replace("ä ", "à");
    strTemp = strTemp.Replace("â", "â");
    strTemp = strTemp.Replace("ä¢", "â");
    strTemp = strTemp.Replace("ä", "ä");
    strTemp = strTemp.Replace("ä¤", "ä");
    strTemp = strTemp.Replace("Ã¥", "å");
    strTemp = strTemp.Replace("ä¥", "å");
    strTemp = strTemp.Replace("Â", "Â");
    strTemp = strTemp.Replace("ä‚", "Â");
    strTemp = strTemp.Replace("Ä", "Ä");
    strTemp = strTemp.Replace("ä„", "Ä");
    strTemp = strTemp.Replace("ù", "u");
    strTemp = strTemp.Replace("û", "û");
    strTemp = strTemp.Replace("ü", "ü");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("Û", "Û");
    strTemp = strTemp.Replace("Ãœ", "Ü");
    strTemp = strTemp.Replace("ä¹", "u");
    strTemp = strTemp.Replace("ä»", "û");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("ä›", "Û");
    strTemp = strTemp.Replace("äœ", "Ü");
    strTemp = strTemp.Replace("ò", "ñ");
    strTemp = strTemp.Replace("ñ", "ñ");

    return strTemp;
}
 

Browse all snippets