SuperMoonster
Programmer
Hello everyone,
I am inserting values in a database through asp and setting the charset like this:
SESSION.LCID = 1049
I need this LCID because the page will insert chars in portuguese, with accentuation.
So, I get my string with:
nome = Trim(Request.Form("txtNome"))
And if I do a response.write, it will be ok. If my string is "João", it will come with the right chars.
Then, I create the sql string, inserting this name. I do a response.write, and again, it prints fine.
But when I execute the insert, the string that went to the database is like: "João"
It is NOT a database problem, because if I execute the same insert in the database tool, it inserts correctly. So I figure it is only correct for the display, not inside.
Can anyone help?
I am inserting values in a database through asp and setting the charset like this:
SESSION.LCID = 1049
I need this LCID because the page will insert chars in portuguese, with accentuation.
So, I get my string with:
nome = Trim(Request.Form("txtNome"))
And if I do a response.write, it will be ok. If my string is "João", it will come with the right chars.
Then, I create the sql string, inserting this name. I do a response.write, and again, it prints fine.
But when I execute the insert, the string that went to the database is like: "João"
It is NOT a database problem, because if I execute the same insert in the database tool, it inserts correctly. So I figure it is only correct for the display, not inside.
Can anyone help?