473,378 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Server.HtmlDecode("‘") does not work

I am trying to decode character ‘#; but it is not working. Anybody
knows how to decode this character?

Sep 17 '07 #1
8 5292
What to you mean by decode. It's not coded.

‘ is an UTF-8 representation of the symbol.
You can use Decoder utf8Decoder = Encoding.UTF8.GetDecoder();
to work with it or convert to Unicode. But you will not fit it into ASCII
table.
George.

<em**********@gmail.comwrote in message
news:11**********************@50g2000hsm.googlegro ups.com...
>I am trying to decode character ‘#; but it is not working. Anybody
knows how to decode this character?

Sep 17 '07 #2
what do mean by not working? it will creates a 1 char string with an
ascii value of 145 (which is unprintable)
-- bruce (sqlwork.com)
em**********@gmail.com wrote:
I am trying to decode character ‘#; but it is not working. Anybody
knows how to decode this character?
Sep 17 '07 #3
Asc(Server.HtmlDecode("‘")) ' Output = 63 = "?"

Sep 17 '07 #4
can anybody help me???

Sep 18 '07 #5
I *reaally* don't understand your question.

When I process Server.HTMLDecode("‘")

....what I get as a result is : '

See the sample at : http://asp.net.do/test/HTMLencode.aspx

It's the LAST label in the list, after %3f ...and the code is :

im txtenc2 as String = Server.HTMLDecode("‘")
lblMessage6.Text = txtenc2

It seems to render OK in that test. What is the problem you're seeing ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<em**********@gmail.comwrote in message news:11**********************@57g2000hsv.googlegro ups.com...
can anybody help me???

Sep 18 '07 #6
On Sep 18, 10:00 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
I *reaally* don't understand your question.

When I process Server.HTMLDecode("‘")

...what I get as a result is : '

See the sample at :http://asp.net.do/test/HTMLencode.aspx

It's the LAST label in the list, after %3f ...and the code is :

im txtenc2 as String = Server.HTMLDecode("‘")
lblMessage6.Text = txtenc2
When I write Server.HTMLDecode("‘") output is as follows

Output: (not printable character so no output)
length of string: 1
Ascii value of character using Asc function: 63

Do I need to change any settings anywhere? In my web.config file

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

Thanks
It seems to render OK in that test. What is the problem you're seeing ?

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
======================================

<emailmygr...@gmail.comwrote in messagenews:11**********************@57g2000hsv.go oglegroups.com...
can anybody help me???- Hide quoted text -

- Show quoted text -

Sep 18 '07 #7
re:
!Do I need to change any settings anywhere? In my web.config file
!<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

I'm using :

<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" fileEncoding="iso-8859-1" />

Can you test with those settings...and post back the result ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<em**********@gmail.comwrote in message news:11**********************@i13g2000prf.googlegr oups.com...
On Sep 18, 10:00 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
I *reaally* don't understand your question.

When I process Server.HTMLDecode("‘")

...what I get as a result is : '

See the sample at :http://asp.net.do/test/HTMLencode.aspx

It's the LAST label in the list, after %3f ...and the code is :

im txtenc2 as String = Server.HTMLDecode("‘")
lblMessage6.Text = txtenc2
When I write Server.HTMLDecode("‘") output is as follows

Output: (not printable character so no output)
length of string: 1
Ascii value of character using Asc function: 63

Do I need to change any settings anywhere? In my web.config file

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

Thanks
It seems to render OK in that test. What is the problem you're seeing ?

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
======================================

<emailmygr...@gmail.comwrote in messagenews:11**********************@57g2000hsv.go oglegroups.com...
can anybody help me???- Hide quoted text -

- Show quoted text -


Sep 18 '07 #8
I changed web.config as following

<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1" fileEncoding="iso-8859-1" />
but no luck.

Sep 19 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ASP.Confused | last post by:
I have a program that I'm trying to get error detection to work with. To test it, I attempted using the following mispelled CreateObject statement (which should cause an error): Set myObject =...
5
by: David C | last post by:
We moved an ASP application from Win 2000 server to Win 2003 server and now the Server.Execute method does not work. It gives me ASP 0228 error. What gives? Thanks. David Chase
5
by: Tom | last post by:
Hi I am trying to transfer to a different .ASPX page using Server.Transfer. However, I get the following error: "Error executing child request for .aspx." Anyone know why? Thanks for...
2
by: Jeremy S. | last post by:
What does it take to make a Web server a "secure server"? I need to serve some images from my IIS6 server and they must be accessible via https. I have never set up a server to work with...
0
by: DraguVaso | last post by:
Hi, I have a VB.NET-application that has to open an email in Outlook. for this I have some VBA-code in a MSScriptControl. This works like always, but sometimes it thorws this error: "...
2
by: Alex | last post by:
Hello, Quick question and I would really appreciate if anybody could helps me. Here are the steps to reproduce the problem. Create simple ASP.Net application. In code behind added protected...
1
by: Janna | last post by:
Hello tech savvy gurus! I hope someone can help me! THE PROBLEM: "Cannot open specified file" when I click on a hyperlink in an Access database when it is located on our server. THE...
2
by: jeff80 | last post by:
Hello, I'm an absolute newbie when it comes to SQL. I was told that SQL server does not function well on a WAN where network latency between, say, the SQL server and a front-end server is...
1
parshupooja
by: parshupooja | last post by:
Hey All, I think is does work but still I wanted to make sure whether SQL Server Enterprise Edition works on Windows XP machine or not? I need to install on client worstation. thanks
2
by: subint | last post by:
We have a button "Print' in our application,after clicking the Print button it will open a new window. Close the new window and click Print button again, below error is displayed. "The remote...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.