Determine culture of string

  • Thread starter Thread starter md_rogers
  • Start date Start date
M

md_rogers

How do I determine the culture/language of a specific string?

Dim s As String = "some text"

How do I determine for instance, if s is Arabic text or not?
 
How do I determine the culture/language of a specific string?

Dim s As String = "some text"

How do I determine for instance, if s is Arabic text or not?

I think that there is not such thing as a culture of the string. A
string could contain both Arabic, French and Polish national characters.
What is the culture of such a string?

It is the current thread that has a culture info attached and this info
determines the way string *operations* work.

Best regards!
Marcin
 
I think you mean codification, the code page used in the string,
because culture info is for threads.

(e-mail address removed) ha escrito:
 
Ok then, how do I tell the "codification" of a string, or one character
from a string?
 
I dont know in wich scenario are you programing, but if it's a web
service, the encoding is pased as a header from the server. In other
case, you may use utf-16, wich suports almost all languages and
characters, so you dont have to worry about those details..
Best regards
 
Back
Top