c# - recognize code page of input string -
To identify the code page of the input string, for example, if I put something in Cyrillic then it should return to the window-1251 and when I put the string in the sugar it gets another code page etc.
If this is an input from the textbox (the Windows form) string one. The net string is,
If you get input from a Web Form (ASPX) page, then the browser also sends the codepage with it. And. Net will create Unicode for you.
If you get input from a file, - -).