Globalization: This is driving me crazy. Can u help me out?

M

Miguel Dias Moura

Hello,

i am having problems in displaying some characteres from a database: á, è,
?, etc

After consulting Globalization information in Microsoft web site i added the
code <system.web> ... </system.web> to the web.config file, as follows:

<configuration>
<system.web>
<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"/>
</system.web>
<appSettings>
....

In all my web site pages i have the following:

<%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1"%>

iso-8859-1 is for Latin Characteres...i think.

Anyway, i am able to display á, è but i can't display the symbol ?. Can
somebody help me out?
I don't know what else to do and i am around this for 3 weeks.

Thank You Very Much,
Miguel
 
G

Guest

Try using the HTMLEncode or URLEncode to put your data thru one of these functions. Make sure to encode and decode. Not sure whether that will help or not. But that's what striked me. Give it a try and let me know your response
- Askar
 
M

Miguel Dias Moura

Sorry but i am not familiar with HTMLEncode and URLEncode.
Can you give me some help?

The 2 problems i have now is to display the symbol ? and to pass words in
the url as variables when they have the symbols "á", "é", etc.

Thanks,
Miguel

Askar said:
Try using the HTMLEncode or URLEncode to put your data thru one of these
functions. Make sure to encode and decode. Not sure whether that will help
or not. But that's what striked me. Give it a try and let me know your
response.
 
G

Guest

Try using the Server.HtmlEncode and Server.HtmlDecode. All it does is takes in a string and encodes/decodes that with HTML characters. The same thing is there for the URLEncode/URLDecode. I had a similar problem kind of this that if I don't encode/decode the stuffs then I was missing some new line characters and some of the ASCII characters. I got around that with this workaround. May be that will help you also
- Askar -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top