£ in HTML breaks email, £ in HTML stops email sending , with "line to long" error |
£ in HTML breaks email, £ in HTML stops email sending , with "line to long" error |
G-Oker |
Jul 12 2021, 01:10 PM
Post
#1
|
Group: Members Posts: 3 Joined: 12-July 21 Member No.: 28,013 |
Hello,
I am trying to solve why a £ in an HTML would generate a "Line to long" error message when trying to send an HTML email? I have tried redoing the email template from scratch, but no joy. The HTML pulls data from a database prior to sending, and if this data contains a £, the email fails to send. Further testing proves the £ sign can be anywhere in the email template, and the same error happens. Can anyone please advise on how I can overcome / what might be causing this ( Not using the £ is not an option :-) ) ? Thank you all in advance |
CharlesEF |
Jul 12 2021, 02:14 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Do you use the HTML entity code, £?
|
G-Oker |
Jul 13 2021, 03:46 AM
Post
#3
|
Group: Members Posts: 3 Joined: 12-July 21 Member No.: 28,013 |
Do you use the HTML entity code, £? Hi, Sometimes the £ is pulled in from a Database value, so it will come in as just the "£". I have tried it with numerous codes as well (sorry, should have mentioned that before) with the same effect. If I replace £ with the Lira sign, everything is fine. |
Brian Chandler |
Jul 13 2021, 08:50 AM
Post
#4
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
Do you use the HTML entity code, £? Hi, Sometimes the £ is pulled in from a Database value, so it will come in as just the "£". I have tried it with numerous codes as well (sorry, should have mentioned that before) with the same effect. If I replace £ with the Lira sign, everything is fine. What do you mean by a lira sign? Normally this is visually the same as a pound sign... but this must be some sort of encoding problem. What character set is the database using? What character set is your email using? Usually more or less everything is UTF8, and more or less copying everything just works, but if it doesn't you have to start checking properly. |
G-Oker |
Jul 14 2021, 06:09 AM
Post
#5
|
Group: Members Posts: 3 Joined: 12-July 21 Member No.: 28,013 |
Do you use the HTML entity code, £? Hi, Sometimes the £ is pulled in from a Database value, so it will come in as just the "£". I have tried it with numerous codes as well (sorry, should have mentioned that before) with the same effect. If I replace £ with the Lira sign, everything is fine. What do you mean by a lira sign? Normally this is visually the same as a pound sign... but this must be some sort of encoding problem. What character set is the database using? What character set is your email using? Usually more or less everything is UTF8, and more or less copying everything just works, but if it doesn't you have to start checking properly. Hi, I ended up re-writing the HTML from scratch. it seems that the £ didn't link being in a nested table(s) . I've tested this new HTML and it works all the time. thank you very much for your help. your note about the charset set me down the route which lead to the re-write solving the issue. |
Lo-Fi Version | Time is now: 23rd April 2024 - 05:13 AM |