Connecting Tech Pros Worldwide Forums | Help | Site Map

Server.HtmlDecode("‘") does not work

emailmygroup@gmail.com
Guest
 
Posts: n/a
#1: Sep 17 '07
I am trying to decode character ‘#; but it is not working. Anybody
knows how to decode this character?


George Ter-Saakov
Guest
 
Posts: n/a
#2: Sep 17 '07

re: Server.HtmlDecode("‘") does not work


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.



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

bruce barker
Guest
 
Posts: n/a
#3: Sep 17 '07

re: Server.HtmlDecode("&#145;") does not work


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)


emailmygroup@gmail.com wrote:
Quote:
I am trying to decode character ‘#; but it is not working. Anybody
knows how to decode this character?
>
emailmygroup@gmail.com
Guest
 
Posts: n/a
#4: Sep 17 '07

re: Server.HtmlDecode("&#145;") does not work


Asc(Server.HtmlDecode("‘")) ' Output = 63 = "?"

emailmygroup@gmail.com
Guest
 
Posts: n/a
#5: Sep 18 '07

re: Server.HtmlDecode("&#145;") does not work


can anybody help me???

Juan T. Llibre
Guest
 
Posts: n/a
#6: Sep 18 '07

re: Server.HtmlDecode("&#145;") does not work


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/
======================================
<emailmygroup@gmail.comwrote in message news:1190125136.354524.283640@57g2000hsv.googlegro ups.com...
Quote:
can anybody help me???
>

emailmygroup@gmail.com
Guest
 
Posts: n/a
#7: Sep 18 '07

re: Server.HtmlDecode("&#145;") does not work


On Sep 18, 10:00 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Quote:
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
Quote:
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:1190125136.354524.283640@57g2000hsv.go oglegroups.com...
Quote:
can anybody help me???- Hide quoted text -
>
- Show quoted text -

Juan T. Llibre
Guest
 
Posts: n/a
#8: Sep 18 '07

re: Server.HtmlDecode("&#145;") does not work


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/
======================================
<emailmygroup@gmail.comwrote in message news:1190130213.219447.126300@i13g2000prf.googlegr oups.com...
On Sep 18, 10:00 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Quote:
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
Quote:
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:1190125136.354524.283640@57g2000hsv.go oglegroups.com...
Quote:
can anybody help me???- Hide quoted text -
>
- Show quoted text -


emailmygroup@gmail.com
Guest
 
Posts: n/a
#9: Sep 19 '07

re: Server.HtmlDecode("&#145;") does not work


I changed web.config as following

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


but no luck.

Closed Thread