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

  • May 2, 2022
  • 2 replies
  • 28 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • 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
  • 606 replies
  • 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