[Mono-list] Numbers with ","
Paulo Augusto
PauloMorfeo at portugalmail.pt
Fri Feb 10 19:56:17 EST 2006
In portuguese (in fact, every language i know except english), numbers
are separated by a "," comma, instead of by a "." dot.
So, when my mono program needs a number from an Entry():
Convert.ToSingle (string);
and then i want to pass that number to MySql through an sql string:
float.ToString();
results in a string that has a "," which brakes the sql string.
Anyone has any idea on what's the best way to handle this localisation
issue?
I tried working around it with:
string.Replace (char, char);
and
string.Replace (string, string);
to the resulting string but i think both are broken since they do not
work at all.
One would think this issue would be frequent but i do not seem to be
able to find any information at all anywhere about it.
More information about the Mono-list
mailing list