Current location: Hot Scripts Forums » Programming Languages » Perl » Perl newb having difficulty with GBP £ symbol in emails


Perl newb having difficulty with GBP £ symbol in emails

Reply
  #1 (permalink)  
Old 04-19-11, 01:57 PM
Skazz Skazz is offline
Newbie Coder
 
Join Date: Apr 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
$$$ Perl newb having difficulty with GBP £ symbol in emails

Hi there, I hope someone can help me!

I have some shopping cart software that I need to edit, and it's a tiny issue, but in my notification emails I cannot get the pound (£) symbol (UK currency) to appear correctly. At the moment, the line of code in question looks like this:

Code:
$message2 .= "Qty: ${$qnt}   \nItem No: ${$ide}   \nDescription: ${$naam}   \nAddtl. Info: ${$adlinfo}   \nPrice: GBP${$prce} \n\n";
And the difficulty arises toward the end where you can currently see 'GBP'. I have entered this as a temporary measure as if I enter the pound symbol (£) it does not output correctly into the emails - instead I get a £ (in case you cannot see this, it is a capital A with a tiny upside down 'v' above it, followed by the pound symbol). I have tried quite a few things but I can't seem to get rid of the A symbol. I'm assuming it's something to do with the encoding, but I'm finding it tricky to work out what bit of perl code I could add (and where) to allow the pound symbol to display on its own.

Hope someone can help me and I look forward to hearing from you!
Reply With Quote
  #2 (permalink)  
Old 04-24-11, 09:46 PM
wickedxter wickedxter is offline
New Member
 
Join Date: Apr 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
have u tried escaping the char? like. (black-lash \ )

print "$ 456.4";

456.4

print "\$ 456.4";

$ 456.4

if thats not workin is in the unicodeing im guessing on the email server ur using..

Last edited by wickedxter; 04-24-11 at 09:51 PM.
Reply With Quote
Reply

Bookmarks

Tags
character encoding, gbp, pound


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
Perl subsititution on Windows kenkanya Perl 3 07-28-09 12:23 AM
Redirection back to a page from form submit DAL Perl 11 03-21-05 02:45 PM
Perl FormMail Problem ennanguyen2002 Perl 2 03-09-05 04:47 PM


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