Convert Swedish charatcer to English

Hi,

We have a scenario where we want to convert Swedish character to English character.

Ex. Läítíñèñ should be Laitinen

How should I achieve conversion in OutSystems?

Best Regards,

Nitin

Hi Daniel,

Thanks for you comments and you suggestions below is the server side forge component and it can work for mobile , reactive and traditional app.

@Nitin Chavan you can try this.

https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=12832&ProjectName=diacritics-accent-removal-server-side

Best Regards

Devendra


Thank You @Devendra Singh Baghel !

This solution is working as expected.

mvp_badge
MVP

Hi @Daniël Kuhlmann ,

I am not getting how to write regex_Replace in server action using character mapper.

Ex. var characterMap = {"À": "A","Á": "A","Â": "A","Ã": "A"}

Best Regards,

Nitin

Hi Nitin,

You can use  below forge component to  remove accents diacritics

https://www.outsystems.com/forge/component-overview/6766/remove-accents-diacritics

Best Regards

Devendra

mvp_badge
MVP

Nice share, some comments though; this solution is a mobile module. Furthermore, it just does what I already suggested using Regex. My advice would be to copy/paste the Javascript to a Js widget  in your application, or if needed create a server action version of this, if the processing needs to be done server side rather than client side.

https://github.com/tyxla/remove-accents/blob/master/index.js

Hi Daniel,

Thanks for you comments and you suggestions below is the server side forge component and it can work for mobile , reactive and traditional app.

@Nitin Chavan you can try this.

https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=12832&ProjectName=diacritics-accent-removal-server-side

Best Regards

Devendra


Thank You @Devendra Singh Baghel !

This solution is working as expected.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.