Current location: Hot Scripts Forums » Programming Languages » PHP » euro problem


euro problem

Reply
  #1 (permalink)  
Old 04-18-06, 05:05 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
euro problem

Hi there,

I got a little problem with the euro-sign.

what is the code to place a euro-sign in php.
I store my data in a TXT file..

I tried € but the euro sign isn't displayed.. the text is stopped
everything after the € isn't displayed any more.
on my mac the code for the euro-sign is: €
is that right?....

I also want to make a button that when it's clicked it inserts the
code for the euro-sign automaticly.

How can I do this..

hope someone can help..

_j
Reply With Quote
  #2 (permalink)  
Old 04-18-06, 06:23 AM
nova912's Avatar
nova912 nova912 is offline
Code Guru
 
Join Date: Sep 2004
Location: Traverse City, MI, USA
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts
Is your text file displayed through html, if so you can run the ouput through html and it would see € and display the symbol. Just a thought.
Reply With Quote
  #3 (permalink)  
Old 04-18-06, 06:50 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
nope it's php file..

the € doesn't work...
Reply With Quote
  #4 (permalink)  
Old 04-18-06, 06:57 AM
nova912's Avatar
nova912 nova912 is offline
Code Guru
 
Join Date: Sep 2004
Location: Traverse City, MI, USA
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jonnekke
nope it's php file..

the € doesn't work...
Sorry maybe I was not clear enough.

1) How is the user viewing that data in the text file (through a web browser, or text editor)

2) If it's a browser I would imagine using the appropriate "&;" would echo to the browser the symbol.

Thats all I ment to say.

EDIT: Another euro symbol listing is "€", give it a shot. ("&" + "#8364");

Last edited by nova912; 04-18-06 at 07:01 AM.
Reply With Quote
  #5 (permalink)  
Old 04-18-06, 07:01 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
sorry.. understood it wrong..

It's viewed through a browser..
but I tried the € in the txt file
php is including the txt file

but as I wrote before the browser stops the text and
everything beyond € is gone.

_j
Reply With Quote
  #6 (permalink)  
Old 04-19-06, 03:19 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Could you may post your code?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird mysql_query and Smarty problem Canglan PHP 3 11-15-05 08:49 PM
Advanced Search Problem php-learner PHP 1 10-13-05 09:51 AM
Hivemaker Professional - now only 99 Euro scriptfactory General Advertisements 2 10-20-04 11:48 AM
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM


All times are GMT -5. The time now is 07:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.