0

I need to replace special characters with their respective encoding from the list, below are the sample list of characters and their encoding

  'Á' => 'Á', 
  'á' => 'á', 
  'Â' => 'Â', 
  'â' => 'â', 
  '´' => '´', 
  'Æ' => 'Æ', 
  'æ' => 'æ', 
  'À' => 'À', 
  'à' => 'à', 
  'ℵ' => 'ℵ', 
  'Α' => 'Α', 
  'α' => 'α', 
  '&' => '&', 
  '∧' => '∧', 

Source String = "this is some sample à for character encoding æ"

After replace character in string should look like below:

output= "this is some sample &aacute for character encoding æ"

pankaj desai
  • 93
  • 1
  • 8

0 Answers0