Alpha Video Training
Results 1 to 9 of 9

Thread: strtran AND evaluate_string both mangling UK 'pound' sign

  1. #1
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default strtran AND evaluate_string both mangling UK 'pound' sign

    I'm trying to create the plain text for an email which includes several currency values in the body.

    I can format the values including a UK currency symbol, but when I run 'evaluate_string' it replaces the POUND with a # . Same problem with strtran (and I assume it's close brothers)

    Same problem if I include the POUND as plain text - all looks OK until I run an evaluate or strtran.

    Any ideas on how to get the currency symbol into the email?
    Last edited by armasoft; 05-16-2019 at 08:32 AM. Reason: POUND sign breaks the post

  2. #2
    Member
    Real Name
    Andrew Davidowicz
    Join Date
    Aug 2018
    Posts
    9

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Can you show us how you are using strtran() and evaluate_string with the POUND symbol?

    I have done a bunch of quick tests and didn't have any issues.
    Last edited by Davidowicza; 05-16-2019 at 11:03 AM. Reason: Yes, the POUND symbol destroys the post haha

  3. #3
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Problem is apparent in the debugger - variable shows no currency symbol
    Problem is apparent in the email - variable shows '#' as currency symbol
    not in the interactive where it appears to work.

    I'll keep experimenting

  4. #4
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    This must be a character set problem as strtran also looks OK in the interactive e.g. ?stritran("##25.50","##","POUND") works in the interactive, but displays #25.50 in a plain text email
    Last edited by armasoft; 05-16-2019 at 01:28 PM. Reason: add example

  5. #5
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Had to build html versiion of the email to get the POUND sign to appear. Used 'GBP' in the plain text, but not happy with this. Unfortunately, emails must go out tomorrow and I'm stumped.

  6. #6
    "Certified" Alphaholic Mike Wilson's Avatar
    Real Name
    mike wilson
    Join Date
    Apr 2005
    Location
    Grand Rapids, Michigan
    Posts
    4,168

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Why do you not just use the very well accepted three-character designation for British Sterling - GBP - instead of trying to use a symbol. We always use three-character designation as it is the standard for the financial systems throughout the world. See here:

    https://www.translationdirectory.com...lossary123.htm
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

  7. #7
    Member
    Real Name
    mumfie
    Join Date
    Dec 2008
    Location
    UK
    Posts
    197

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Quote Originally Posted by armasoft View Post
    Had to build html versiion of the email to get the POUND sign to appear. Used 'GBP' in the plain text, but not happy with this. Unfortunately, emails must go out tomorrow and I'm stumped.
    not sure how you are sending the emails but have you tried setting the CHARSET ?

  8. #8
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Mike, as per my last post, I have resorted to that solution, but it should not be necessary for a UK based company selling to UK based companies to use the international designation for our local currency. Looks like yet another case of USA knows best and everybody else in the world is wrong/unimportant.

  9. #9
    Member
    Real Name
    Jon P Moody
    Join Date
    Nov 2016
    Posts
    148

    Default Re: strtran AND evaluate_string both mangling UK 'pound' sign

    Quote Originally Posted by mumfie View Post
    not sure how you are sending the emails but have you tried setting the CHARSET ?
    The man is a genius. Thanks mumfie - used charset=iso-8859-1 to good effect

Similar Threads

  1. printhtml() and pound sign
    By jacsolutions in forum Mobile & Browser Applications
    Replies: 5
    Last Post: 11-17-2016, 08:37 AM
  2. Security - Showing on the main screen AFTER sign in, sign off and the user name
    By Atta in forum Application Server Version 10 - Web/Browser Applications
    Replies: 10
    Last Post: 12-23-2010, 02:03 PM
  3. Is Alpha web component not show a £ GB pound sign?
    By JH10 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 20
    Last Post: 01-26-2010, 03:10 PM
  4. Currency change to pound sterling?
    By avelli in forum Alpha Five Version 7
    Replies: 19
    Last Post: 04-18-2006, 11:00 AM
  5. Pound sign in default descriptive name
    By Tony Rutherford in forum UK Users
    Replies: 0
    Last Post: 06-15-2004, 10:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •