Click here to Skip to main content
11,643,493 members (72,635 online)
Click here to Skip to main content

Convert Accented Characters to Simple Characters

, 12 Jul 2010 CPOL 15K 4
Rate this:
Please Sign up or sign in to vote.
I recently needed a way to replace accented characters with simple English ones to allow more readable friendly urls. I'm sure there are plenty of Danes out there who are sick of seeing their language butchered by UrlEncode... 

I recently needed a way to replace accented characters with simple English ones to allow more readable friendly URLs. I'm sure there are plenty of Danes out there who are sick of seeing their language butchered by UrlEncode. After a bit of reading up, it seems .NET 2.0 does 99% of the heavy lifting for you:

 //using System.Text;
  
 /// <span class="code-SummaryComment"><summary>
</span>

I’m sure that there must be a few substitutions that don’t get caught by this code. If you’ve got one, just drop me a line!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Martin Jarvis
Software Developer (Senior) Freestyle Interactive Ltd
United Kingdom United Kingdom
I'm a lead developer for Freestyle Interactive Ltd where we create many wonderful websites built on Microsofts ASP.Net and Ektron CMS.

I've been developing .Net applications (both Windows and Web) since 2002.

You may also be interested in...

Comments and Discussions

 
GeneralMy kludgy approach Pin
supercat929-Jun-10 5:09
membersupercat929-Jun-10 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150731.1 | Last Updated 12 Jul 2010
Article Copyright 2010 by Martin Jarvis
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid