protected string Translate(string Value) // OK
{
int I;
string T;
string result;
char X;
result = "";
T = ConvertToOEM(Value);
try
{
result = XmlConvert.VerifyName(T);
}
catch
{
for (I=0; I < T.Length; ++I)
{
X = T[I];
if ((X=='\\') || (((X>='a') && (X<='z')) || ((X>='A') && (X<='Z')) || ((X>='0') && (X<='9'))))
result += X;
else
result += '_';
}
result = result.Replace(' ', '_');
}
return result;
}