Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the page which contains diacritics eg: http://geoiptool.com/en/?IP=192.42.43.22 contains Neuchatel with 'a' as a diacritic. 
  2. From a UNIX machine get the dump using command line tool 'xxd' of the page and grep the word so that you get hex dump of the alphabet required eg:
    Code Block
    xxd index.html?IP=192.42.43.22 | grep Neuch
    
    1. The output would be something like :
      Code Block
      0001d00: 6c64 223e 4e65 7563 68e2 7465 6c3c 2f74  ld">Neuch?tel</t
      
    2. Every two char at left represent one char at right and its starts after the colan":" eg 6c represents I and 64 represents d
  3. Count the char to find the missing alphabet which "e2" in our case.
  4. Replace the alphabet using the pattern matching for hex by \x
    Code Block
    if($city =~ m/\xe2/){
          $city  =\~ s/\xe2/a/g;
     }
    

...