Skip to main content

I want to replace attributes from Unicode to without accent.

For example : Find âÂăĂđĐêÊôÔơƠưƯ --> Replace aAaAdDeEoOoOuU

Ăn >> An

Đô >> Do

 

Could you tell me how to replace it by python or other way?

Thank you

Use StringPairReplacer with Replacement Pairs set to  â a Â A ă a Ă A đ d Đ D ê e Ê E ô o Ô O ơ o Ơ o ư u Ư U.

The pair are separated by space as following 

key value key value

where key is the string you want to replace and  value is the replacement string.


Use StringPairReplacer with Replacement Pairs set to  â a Â A ă a Ă A đ d Đ D ê e Ê E ô o Ô O ơ o Ơ o ư u Ư U.

The pair are separated by space as following 

key value key value

where key is the string you want to replace and  value is the replacement string.

Thank you so much @caracadrian​ 


There's a custom transformer on the FME Hub that does it for you:

https://hub.safe.com/publishers/jeroenstiers/transformers/stringcleaner

It's fully generic and does not need any settings.

 


Reply