accyyg
Last Updated: February 25, 2016
·
876
· alexanderbrevig
Feb007acc38e70d57f7b4c205f7e8b26

Latinize strings in C# (æøå = aoa)

I got tired of spreading search and replaces around my projects where I need them to handle international letter input, but convert them to ASCII for some reason (may be an external API that only accepts ASCII input f.ex).

Then I made this: https://github.com/AlexanderBrevig/String.Latinize

//using Latinize; //remember to use Latinize namespace
Console.WriteLine("äæåÄÆÅ çÇ éèêÉÈÊ øö".Latinize());
//=>               aaaAAA cC eeeEEE oo 
//more letters supported
Say Thanks
Respond