• 02-07-2010, 11:36:18
    #1
    Üyeliği durduruldu
    arkadaşlar merhaba

    daha önce bu sorunu yazanlar mutlaka olmuştur ama bulamadım





    MSSQL verit abanından

    ID=request("gelenharf")



    Select * From WM_UYE where Left(ad,1) like '%" & ID &"%' order by ad asc



    ile listeleri çekliyorum ancak



    ş ı ö ü harflerinde arama olmuyor örneğin ş harfinde ÅŸ diye karakter çıkıyor bunu bir türlü halledemedim ne yapmam gerekiyor.

    Bilgisi olan varsa paylaşırsa sevinirim

    Saygılar...
  • 02-07-2010, 12:35:37
    #2
    Üyeliği durduruldu
    function koruma(shn)
    shn=Replace(shn, "İ", "İ",1,-1,1)
    shn=Replace(shn, "ı", "ı",1,-1,1)
    shn=Replace(shn, "Ä?", "Ğ",1,-1,1)
    shn=Replace(shn, "ÄŸ", "ğ",1,-1,1)
    shn=Replace(shn, "Å", "ş",1,-1,1)
    shn=Replace(shn, "Å", "ş",1,-1,1)
    shn=Replace(shn, "Ö", "Ö",1,-1,1)
    shn=Replace(shn, "ö", "ö",1,-1,1)
    shn=Replace(shn, "Ç", "Ç",1,-1,1)
    shn=Replace(shn, "ç", "ç",1,-1,1)
    shn=Replace(shn, "Ü", "Ü",1,-1,1)
    shn=Replace(shn, "ü", "ü",1,-1,1)
    shn=Replace(shn, "Ÿ", "",1,-1,1)

    koruma=shn
    end function


    Yapmak istediğin şeyi doğru anlamışsam eğer replace ile yapabilirsin...

    ID yerine koruma(ID) şeklinde yaparsan istediğin şekilde olur sanırım..
  • 02-07-2010, 12:47:47
    #3
    Üyeliği durduruldu
    SahiNET adlı üyeden alıntı: mesajı görüntüle
    function koruma(shn)
    shn=Replace(shn, "İ", "İ",1,-1,1)
    shn=Replace(shn, "ı", "ı",1,-1,1)
    shn=Replace(shn, "Ä?", "Ğ",1,-1,1)
    shn=Replace(shn, "ÄŸ", "ğ",1,-1,1)
    shn=Replace(shn, "Å", "ş",1,-1,1)
    shn=Replace(shn, "Å", "ş",1,-1,1)
    shn=Replace(shn, "Ö", "Ö",1,-1,1)
    shn=Replace(shn, "ö", "ö",1,-1,1)
    shn=Replace(shn, "Ç", "Ç",1,-1,1)
    shn=Replace(shn, "ç", "ç",1,-1,1)
    shn=Replace(shn, "Ü", "Ü",1,-1,1)
    shn=Replace(shn, "ü", "ü",1,-1,1)
    shn=Replace(shn, "Ÿ", "",1,-1,1)

    koruma=shn
    end function


    Yapmak istediğin şeyi doğru anlamışsam eğer replace ile yapabilirsin...

    ID yerine koruma(ID) şeklinde yaparsan istediğin şekilde olur sanırım..
    sağolasın teşekkür ederim