Skip to main content
Solved

hi i have some features contain arabican numbers (۰۱۲۳۴۵۶۷۸۹), how to convert any arabic digit to english (0123456789)? for example all of ۱ converts to 1, or all of ۲ converts to 2 and so on thanks guys


Forum|alt.badge.img
hi i have some features contain arabican numbers (۰۱۲۳۴۵۶۷۸۹), how to convert any arabic digit to english (0123456789)? for example all of ۱ converts to 1, or all of ۲ converts to 2 and so on thanks guys

Best answer by chrisatsafe

Hi @alireza_hatef​ ,

Another option since you simply need to translate numbers is using the StringPairReplacer. Just set the Replacement Pairs parameter to:

۰ 0 ۱ 1 ۲ 2 ۳ 3 ۴ 4 ۵ 5 ۶ 6 ۷ 7 ۸ 8 ۹ 9

image

View original
Did this help you find an answer to your question?

2 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • May 2, 2022

Hi @alireza_hatef​ 

 

I suggest you to check this question:

 

How to translate language in FME? (safe.com)

 

 

Thanks in Advance,

Danilo


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • May 2, 2022

Hi @alireza_hatef​ ,

Another option since you simply need to translate numbers is using the StringPairReplacer. Just set the Replacement Pairs parameter to:

۰ 0 ۱ 1 ۲ 2 ۳ 3 ۴ 4 ۵ 5 ۶ 6 ۷ 7 ۸ 8 ۹ 9

image


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings