|
Home > Archive > IIS ASP > June 2006 > International character dissapears from FORM
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
International character dissapears from FORM
|
|
| royend@gmail.com 2006-06-21, 1:21 pm |
| Hi.
I am having problems sending values from a simple FORM to a database.
All is written in ASP, and I am doing some validations before it is
actually saved in my database.
It worked for several years, but now it won't accept international
characters. This means that the Norwegian word for boat "B=C5T" ends up
like "BT" since the "=C5" isn't sent.
I have done several testings, and it actually looks like the error
occurs immidiately after I hit the submit-button.
Does anybody know why this problem has occured?
Looking forward to your answers.
royend...
| |
| James Jones 2006-06-21, 1:21 pm |
| use the character codes, not the actual letter. so when the character is
posted.....try to convert it......
<%
varItsStoredIn = Replace(varItsStoredIn, "Å", "")
%>
hope this helps ya.
<royend@gmail.com> wrote in message
news:1150894021.145454.192060@r2g2000cwb.googlegroups.com...
Hi.
I am having problems sending values from a simple FORM to a database.
All is written in ASP, and I am doing some validations before it is
actually saved in my database.
It worked for several years, but now it won't accept international
characters. This means that the Norwegian word for boat "BÅT" ends up
like "BT" since the "Å" isn't sent.
I have done several testings, and it actually looks like the error
occurs immidiately after I hit the submit-button.
Does anybody know why this problem has occured?
Looking forward to your answers.
royend...
| |
| royend@gmail.com 2006-06-21, 1:21 pm |
| I have actually tried converting the letters with ASP, but the problem
is that the string is transformed before it reaches the ASP.
In my .asp-file I have
Response.Write(Request.Form("text"))
as my first line, and it still don't contain the international
letters....
I really don't get this one, as I have multiple forms that actually
does send everything perfect.
royend :|
James Jones wrote:
> use the character codes, not the actual letter. so when the character is
> posted.....try to convert it......
>
> <%
> varItsStoredIn =3D Replace(varItsStoredIn, "=C5", "")
> %>
>=20
>=20
> hope this helps ya.
>
| |
| Evertjan. 2006-06-21, 1:21 pm |
| wrote on 21 jun 2006 in microsoft.public.inetserver.asp.general:
> James Jones wrote:
> I have actually tried converting the letters with ASP, but the problem
> is that the string is transformed before it reaches the ASP.
>
> In my .asp-file I have
> Response.Write(Request.Form("text"))
> as my first line, and it still don't contain the international
> letters....
>
> I really don't get this one, as I have multiple forms that actually
> does send everything perfect.
I strongly suspect it has to do with the character set used by your
browser. Try rightclicking on the page in IE and try different
"encoding"s.
ASP can set these for you in the header.
Under ASP try different "code-pages":
How?
<http://www.html.dk/dokumentation/ob...asp/iiapmls.htm>
Baltic:
<http://www.microsoft.com/globaldev/.../iso/28594.mspx>
More:
<http://www.microsoft.com/globaldev/reference/wincp.mspx>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
| |
| royend@gmail.com 2006-06-21, 1:21 pm |
| Thanks for the advice, but still it didn't work. This is a real
challenge as I need this to get working.
Another tips for those looking for their LCID-code:
http://www.microsoft.com/globaldev/...e/lcid-all.mspx
Still looking for the correct answer to my problem though.
Thanks for all your tips so far.
royend
| |
| Evertjan. 2006-06-21, 1:21 pm |
| wrote on 21 jun 2006 in microsoft.public.inetserver.asp.general:
> Thanks for the advice, but still it didn't work. This is a real
> challenge as I need this to get working.
>
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.
<http://www.safalra.com/special/googlegroupsreply/>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
| |
| royend@gmail.com 2006-06-22, 7:23 pm |
| Thanks for your tip!
Evertjan. wrote:
> Please quote what you are replying to.
>
> If you want to post a followup via groups.google.com, don't use the
> "Reply" link at the bottom of the article. Click on "show options" at the
> top of the article, then click on the "Reply" at the bottom of the article
> headers.
>
> <http://www.safalra.com/special/googlegroupsreply/>
I will use this technique from now on.
Still, no solution to the problem though...
royend
|
|
|
|
|