1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mail.ru search query

Discussion in 'General Programming Chat' started by hardwarez, Jun 23, 2016.

  1. hardwarez

    hardwarez Newbie

    Joined:
    Mar 18, 2014
    Messages:
    31
    Likes Received:
    1
    Hello,

    im automating some mail searching on mail.ru. Unfortunatly, some caracters with accent such as à,é,è and special caracter like Ł,â,b,ì,ň,ë etc dont work in the search query.

    see image here : http://imgur.com/uDL4mCa

    You can see with screenshot 2 that mail isnt found anymore because of the "é"

    i tried to url encode the query, didnt work. A also tried windows 1251 encoding, doesnt work either

    How should i do,

    thanks in advance for your help
     
  2. daveter9

    daveter9 Newbie

    Joined:
    Nov 13, 2014
    Messages:
    7
    Likes Received:
    0
    Location:
    The Woodland Realm
    You need to encode your string to ASCII, You have multiple librarys for multiple languages that can do this.
     
  3. hardwarez

    hardwarez Newbie

    Joined:
    Mar 18, 2014
    Messages:
    31
    Likes Received:
    1
    isnt what url encoding do ?

    like grégory -> gr%C3%A9gory

    but it doesnt work :/

    thanks