我需要用列表中的各自编码替换特殊字符,下面是字符的样本列表及其编码
'Á' => 'Á',
'á' => 'á',
'Â' => 'Â',
'â' => 'â',
'´' => '´',
'Æ' => 'Æ',
'æ' => 'æ',
'À' => 'À',
'à' => 'à',
'ℵ' => 'ℵ',
'Α' => 'Α',
'α' => 'α',
'&' => '&',
'∧' => '∧',
来源字符串= "this is some sample à for character encoding æ"
在字符串中替换字符后应如下所示:
output = "this is some sample á for character encoding æ"