DR,
You can't tell definitively.
The best you could do is check each character in the string and then see
what code chart the character is a part of (you will have to find out which
code charts you want to support, as there is no way in .NET (AFAIK) that you
can find this out) and then make a determination from there.
The thing is, many characters are used interchangibly (for example, an
"a" is used in a number of languages), so you can't be sure what language
the code chart is used for.
In the end, you are better off having the user specify the language.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"DR" <so*******************@yahoo.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
how to determine what language a c# string is written in? is there any C#
method to take a string and return what language it is in? e.g. english,
hindi, spanish, etc.