Showing posts with label characters. Show all posts
Showing posts with label characters. Show all posts

Wednesday, March 28, 2012

Strange Characters

Hello,
I have a form with a textbox.
When I click submit the text in the textbox changes.
For example "Andr=E9 Sousa" becomes "Andr=C3=A9 Sousa"
What is wrong and how can I solve this?
Thanks,
Miguel"shapper" <mdmoura@.gmail.com> wrote in message
news:1169488427.871757.44860@.s34g2000cwa.googlegroups.com...
For example "Andr Sousa" becomes "André Sousa"
Whenever one "unusual" character gets substitued by two even more "unusual"
characters, you can be pretty certain it's a Unicode encoding issue...
Post your code...

Strange Characters

Hello,

I have a form with a textbox.

When I click submit the text in the textbox changes.

For example "Andr Sousa" becomes "André Sousa"

What is wrong and how can I solve this?

Thanks,

Miguel"shapper" <mdmoura@.gmail.comwrote in message
news:1169488427.871757.44860@.s34g2000cwa.googlegro ups.com...

For example "Andr Sousa" becomes "André Sousa"

Whenever one "unusual" character gets substitued by two even more "unusual"
characters, you can be pretty certain it's a Unicode encoding issue...

Post your code...

Strange characters displayed in file name - File Download Dialog - IE

I don't know what else to try - In my asp.net app, when the file name has
Windows-1252 characters (like and ), these characters appear, each one,
as two strange characters in the file name label in Internet Explorer File
Download Dialog that is shown when I click a link to download the file. The
file content is being generated on-the-fly using asp.net and the filename is
being passed using a call to Response.AddHeader with the strings
"Content-Disposition" and "attachment; filename=" + filename.

I want the file name to display correctly, as it DOES when I click a link in
a test HTML file that points to a "real" file stored in the system.

I tried setting Response.ContentEncoding but all my atempts were
unsuccessful.
I have also searched the net, specially google groups for an answer but I
couldn't find.

Thank you in advance,

Daniel CardosoAfer trying a little bit more, I decided to analyze the HTTP response
generated by the server in response to a request to download the file. I
then realized that the special characters were being wrongly represented and
sent to the client. I had to use Server.UrlEncode to encode the file name
appropriately, in addition to setting Response.ContentEncoding, so that the
special symbols were correctly sent to the browser. The problem is now
solved.

Regards,

Daniel Cardoso

"Daniel Cardoso" <someone@.nospam.com> wrote in message
news:uMYy4yXoEHA.2636@.TK2MSFTNGP09.phx.gbl...
> I don't know what else to try - In my asp.net app, when the file name has
> Windows-1252 characters (like and ), these characters appear, each one,
> as two strange characters in the file name label in Internet Explorer File
> Download Dialog that is shown when I click a link to download the file.
The
> file content is being generated on-the-fly using asp.net and the filename
is
> being passed using a call to Response.AddHeader with the strings
> "Content-Disposition" and "attachment; filename=" + filename.
> I want the file name to display correctly, as it DOES when I click a link
in
> a test HTML file that points to a "real" file stored in the system.
> I tried setting Response.ContentEncoding but all my atempts were
> unsuccessful.
> I have also searched the net, specially google groups for an answer but I
> couldn't find.
> Thank you in advance,
> Daniel Cardoso

Strange characters displayed in file name - File Download Dialog - IE

I don't know what else to try - In my asp.net app, when the file name has
Windows-1252 characters (like and ), these characters appear, each one,
as two strange characters in the file name label in Internet Explorer File
Download Dialog that is shown when I click a link to download the file. The
file content is being generated on-the-fly using asp.net and the filename is
being passed using a call to Response.AddHeader with the strings
"Content-Disposition" and "attachment; filename=" + filename.
I want the file name to display correctly, as it DOES when I click a link in
a test HTML file that points to a "real" file stored in the system.
I tried setting Response.ContentEncoding but all my atempts were
unsuccessful.
I have also searched the net, specially google groups for an answer but I
couldn't find.
Thank you in advance,
Daniel CardosoAfer trying a little bit more, I decided to analyze the HTTP response
generated by the server in response to a request to download the file. I
then realized that the special characters were being wrongly represented and
sent to the client. I had to use Server.UrlEncode to encode the file name
appropriately, in addition to setting Response.ContentEncoding, so that the
special symbols were correctly sent to the browser. The problem is now
solved.
Regards,
Daniel Cardoso
"Daniel Cardoso" <someone@.nospam.com> wrote in message
news:uMYy4yXoEHA.2636@.TK2MSFTNGP09.phx.gbl...
> I don't know what else to try - In my asp.net app, when the file name has
> Windows-1252 characters (like and ), these characters appear, each one,
> as two strange characters in the file name label in Internet Explorer File
> Download Dialog that is shown when I click a link to download the file.
The
> file content is being generated on-the-fly using asp.net and the filename
is
> being passed using a call to Response.AddHeader with the strings
> "Content-Disposition" and "attachment; filename=" + filename.
> I want the file name to display correctly, as it DOES when I click a link
in
> a test HTML file that points to a "real" file stored in the system.
> I tried setting Response.ContentEncoding but all my atempts were
> unsuccessful.
> I have also searched the net, specially google groups for an answer but I
> couldn't find.
> Thank you in advance,
> Daniel Cardoso
>

Strange characters

Hello,

I have a form with a textbox.

When I click submit the text in the textbox changes.

For example "André Sousa" becomes "Andr?? Sousa"

What is wrong and how can I solve this?

Thanks,

Miguel

try use

Server.HtmlDecode
Server.HtmlEncode

see how it goes


Hi,

Can you show me your code, I am glad to check it in my computer for you.

Strange Characters in Asp.Net Text Box

Hello,

I have a form which saves some data to an SQL 2005 database
If the text written in the text box contains characters such as "??áàéí" when I load the data again I get a few strange characters: "?§?£??? ???"

What is going wrong here?

How can I solve this?

Thanks,
Miguel

What encoding did you set for the pages? Set the responseEncoding to "utf-8"

Check this link on how to set it in the web.config filehttp://msdn2.microsoft.com/en-us/library/hy4kkhe0(vs.80).aspx

Thanks

Strange Characters in Asp.Net Text Box

Hello,
I have a form which saves some data to an SQL 2005 database
If the text written in the text box contains characters such as
"=E7=E3=E1=E0=E9=ED" when I load the data again I get a few strange charact=
ers:
"=C3=A7=C3=A3=C3=A1=C3 =C3=A9=C3"
What is going wrong here?
How can I solve this?
Thanks,
MiguelHello shapper,
This seems like a flaw in Unicode encoding mode in your URL If the character
s
you have types are unicode, then make sure that you save the file in proper
Unicode mode. If you are using VS2005, then you will find a command 'Advance
d
Save Options' which does this.
Thanks
Cyril Gupta
-- You can do anything with a little bit of 'magination.
-- I've been programming so long, my brain is now software.

> Hello,
> I have a form which saves some data to an SQL 2005 database
> If the text written in the text box contains characters such as
> "" when I load the data again I get a few strange characters:
> "??á é"
> What is going wrong here?
> How can I solve this?
> Thanks,
> Miguel

Strange Characters in Asp.Net Text Box

Hello,

I have a form which saves some data to an SQL 2005 database
If the text written in the text box contains characters such as
"" when I load the data again I get a few strange characters:
"??á é"

What is going wrong here?

How can I solve this?

Thanks,
MiguelHello shapper,

This seems like a flaw in Unicode encoding mode in your URL If the characters
you have types are unicode, then make sure that you save the file in proper
Unicode mode. If you are using VS2005, then you will find a command 'Advanced
Save Options' which does this.

Thanks
Cyril Gupta

-- You can do anything with a little bit of 'magination.

-- I've been programming so long, my brain is now software.

Quote:

Originally Posted by

Hello,
>
I have a form which saves some data to an SQL 2005 database
If the text written in the text box contains characters such as
"" when I load the data again I get a few strange characters:
"??á é"
What is going wrong here?
>
How can I solve this?
>
Thanks,
Miguel