Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
Questionconvertin an picture box 32 bit image in to 16 bit Pin
shekhar25839527-Jul-09 0:37
shekhar25839527-Jul-09 0:37 
AnswerRe: convertin an picture box 32 bit image in to 16 bit Pin
Henry Minute27-Jul-09 1:09
Henry Minute27-Jul-09 1:09 
QuestionE-Mail safe encoding/translation of special/diacritic characters Pin
LiQuick26-Jul-09 23:24
LiQuick26-Jul-09 23:24 
AnswerRe: E-Mail safe encoding/translation of special/diacritic characters Pin
Christian Graus26-Jul-09 23:40
protectorChristian Graus26-Jul-09 23:40 
AnswerRe: E-Mail safe encoding/translation of special/diacritic characters Pin
Abhijit Jana26-Jul-09 23:42
professionalAbhijit Jana26-Jul-09 23:42 
GeneralRe: E-Mail safe encoding/translation of special/diacritic characters Pin
LiQuick27-Jul-09 0:05
LiQuick27-Jul-09 0:05 
GeneralRe: E-Mail safe encoding/translation of special/diacritic characters Pin
Eddy Vluggen27-Jul-09 0:52
professionalEddy Vluggen27-Jul-09 0:52 
GeneralRe: E-Mail safe encoding/translation of special/diacritic characters [modified] Pin
LiQuick27-Jul-09 7:07
LiQuick27-Jul-09 7:07 
Thanks Eddy! Do you know UniMaas personally by the way?

Your links gave me the idea/solution I needed. It doesn't work for all characters but it's nifty enough to get most of it out of our system:

public static string RipDiacritics(string Text)
{
    string New = "";
    string Temp = "";
    foreach (char C in Text)
    {
        Temp = C.ToString().Normalize(System.Text.NormalizationForm.FormKD);
        if (Temp.Length > 1)
        {
            Temp = Temp.ToCharArray()[0].ToString();
        }
        New += Temp;
    }
    return New;
}

The string.Normalize(System.Text.NormalizationForm.FormKD) code changes the string "é" to "e'". It seperates the letter from it's accent. Characters that won't work (and I don't know if they are valid for an E-Mail address) are things like "Ø", "œ" and "ß". But we will cover most of them in a translation table till we find a solution to that problem as well.

EDIT: Colleague found an article on Codeproject doing the same as here above: Stripping Accents from Latin Characters: A Foray into Unicode Normalization[^]

modified on Monday, July 27, 2009 4:38 PM

GeneralRe: E-Mail safe encoding/translation of special/diacritic characters Pin
Eddy Vluggen27-Jul-09 8:50
professionalEddy Vluggen27-Jul-09 8:50 
AnswerRe: E-Mail safe encoding/translation of special/diacritic characters Pin
Pete O'Hanlon27-Jul-09 0:25
mvePete O'Hanlon27-Jul-09 0:25 
QuestionSet row headers for datagridview Pin
elci26-Jul-09 23:20
elci26-Jul-09 23:20 
AnswerRe: Set row headers for datagridview Pin
dan!sh 26-Jul-09 23:30
professional dan!sh 26-Jul-09 23:30 
QuestionHow to get download Link Pin
Fullmm26-Jul-09 22:59
Fullmm26-Jul-09 22:59 
AnswerRe: How to get download Link Pin
Christian Graus26-Jul-09 23:07
protectorChristian Graus26-Jul-09 23:07 
GeneralRe: How to get download Link Pin
Fullmm27-Jul-09 0:58
Fullmm27-Jul-09 0:58 
Questionlocation drop down list of the outlook 2007 appointments Pin
248912826-Jul-09 22:31
248912826-Jul-09 22:31 
QuestionDetecting KeyPress. Pin
Haydn01226-Jul-09 21:41
Haydn01226-Jul-09 21:41 
AnswerRe: Detecting KeyPress. Pin
Christian Graus26-Jul-09 21:48
protectorChristian Graus26-Jul-09 21:48 
QuestionForm Layout Pin
vhassan26-Jul-09 21:19
vhassan26-Jul-09 21:19 
AnswerRe: Form Layout Pin
Christian Graus26-Jul-09 21:48
protectorChristian Graus26-Jul-09 21:48 
AnswerRe: Form Layout Pin
Mycroft Holmes26-Jul-09 21:55
professionalMycroft Holmes26-Jul-09 21:55 
AnswerRe: Form Layout Pin
dan!sh 26-Jul-09 21:57
professional dan!sh 26-Jul-09 21:57 
Questioncreate an embeded application Pin
rick055626-Jul-09 21:15
rick055626-Jul-09 21:15 
AnswerRe: create an embeded application Pin
Christian Graus26-Jul-09 21:49
protectorChristian Graus26-Jul-09 21:49 
QuestionHide a process in Task Manager Pin
vasanth arivali26-Jul-09 21:09
vasanth arivali26-Jul-09 21:09 

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

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