ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 31st, 2011, 03:06 AM
xerexie xerexie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 xerexie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 48 sec
Reputation Power: 0
Euro sign is not read in ASP

Hi!

I'm trying to display the euro sign using this code:

If CurrencyStr = "EUR" Then
CurrencyStr = "<b>$euro</b>"
End If

but it wont work. I also tried this code:

If CurrencyStr = "EUR" Then
CurrencyStr = "<b>& # 8 3 6 4 ;</b>"
End If

but still it doesn't work. Your help is very much appreciated. Thank you.

*Note: I put spaces in the second code because the forum converts it to euro sign.

-Rex

Reply With Quote
  #2  
Old May 31st, 2011, 03:25 PM
Ronster Ronster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Charlotte
Posts: 404 Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 55 m 20 sec
Reputation Power: 142
Try here:
http://webdesign.about.com/od/localization/l/blhtmlcodes-cur.htm

In your first example, you put "$euro", looks like it should be: "&euro".

You have spaces in between your second example, it should be: <b>€</b>
http://classicasp.aspfaq.com/general/how-do-i-display-the-euro-symbol-8364-in-my-asp-pages.html

Apparently there can be issues:
http://www.cs.tut.fi/~jkorpela/html/euro.html

Found all that in 2 minutes with Google, using this search:
"html display euro symbol"

Reply With Quote
  #3  
Old May 31st, 2011, 08:00 PM
xerexie xerexie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 xerexie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 48 sec
Reputation Power: 0
Sorry about the '$' sign instead of the '&'. I already changed it and it did not work. As for the second issue as to why I put spaces in this code "&#8364", it is because THIS forum converts it to euro sign so I put spaces. However, in my actual code, i did not put spaces there and it still did not work in my case. I even put this <meta http-equiv="content-type" content="text/html;charset=utf-8" />. I'm stuck in this problem.

Reply With Quote
  #4  
Old June 1st, 2011, 12:55 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 18th Plane (13500 - 13999 posts)
 
Join Date: Jun 2003
Posts: 13,894 Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level)Doug G User rank is General 49th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 4 Days 15 h 10 m 20 sec
Reputation Power: 4227
Put in response.write debug probes to see what currencystring ends up looking like, or view the page source your asp code creates over in the browser
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #5  
Old June 1st, 2011, 01:44 AM
xerexie xerexie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 xerexie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 48 sec
Reputation Power: 0
It doesn't convert to euro sign, instead, it displays the code itself. The "<b>& # 8 3 6 4;</b>"

*i put spaces so that the forum wont convert it.

Reply With Quote
  #6  
Old June 1st, 2011, 02:10 AM
xerexie xerexie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 xerexie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 48 sec
Reputation Power: 0
By the way, Im trying to display the euro sign in a pdf file. In a normal ASP/html page, it shows normally but in a pdf format it wont. So basically that is my problem right now, how to print a euro sign in pdf.

Reply With Quote
  #7  
Old June 1st, 2011, 07:35 AM
Ronster Ronster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Charlotte
Posts: 404 Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 55 m 20 sec
Reputation Power: 142
Quote:
Originally Posted by xerexie
By the way, Im trying to display the euro sign in a pdf file. In a normal ASP/html page, it shows normally but in a pdf format it wont. So basically that is my problem right now, how to print a euro sign in pdf.




Dude. HTML pages and PDF files are not the same thing.

Reply With Quote
  #8  
Old June 1st, 2011, 07:51 AM
xerexie xerexie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 xerexie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 48 sec
Reputation Power: 0
Quote:
Originally Posted by Ronster


Dude. HTML pages and PDF files are not the same thing.


Yes, I just realized that awhile ago. But surely there is a way how to display it in a pdf file. I just don't know how. And I'd gladly appreciate a help from experts.

Reply With Quote
  #9  
Old June 2nd, 2011, 08:32 PM
Ronster Ronster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Charlotte
Posts: 404 Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level)Ronster User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 55 m 20 sec
Reputation Power: 142
Quote:
Originally Posted by xerexie
Yes, I just realized that awhile ago. But surely there is a way how to display it in a pdf file. I just don't know how. And I'd gladly appreciate a help from experts.


My POINT, is that you are in a CLASSIC ASP forum, and said nothing about pdf files in your original post. Being precise in your questions really help. I have no idea how to do it in a pdf file.

Reply With Quote
  #10  
Old July 20th, 2011, 12:42 AM
luluxiu luluxiu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Posts: 1 luluxiu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 5 sec
Reputation Power: 0
Reply to debug what currencystring looks like the end of the probe, or view the source code of ASP code page in the browser to create more...

Reply With Quote
  #11  
Old October 14th, 2011, 10:21 AM
henry48 henry48 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2011
Location: united states
Posts: 2 henry48 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 37 sec
Reputation Power: 0
Hello,

I think i also try to put s p a c e s in there so that the forum didn't convert the code. You need to write it without the spaces.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Euro sign is not read in ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap