The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> £ in HTML breaks email, £ in HTML stops email sending , with "line to long" error
G-Oker
post 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

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post 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, £?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
G-Oker
post Jul 13 2021, 03:46 AM
Post #3





Group: Members
Posts: 3
Joined: 12-July 21
Member No.: 28,013



QUOTE(CharlesEF @ Jul 12 2021, 02:14 PM) *

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jul 13 2021, 08:50 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(G-Oker @ Jul 13 2021, 05:46 PM) *

QUOTE(CharlesEF @ Jul 12 2021, 02:14 PM) *

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
G-Oker
post Jul 14 2021, 06:09 AM
Post #5





Group: Members
Posts: 3
Joined: 12-July 21
Member No.: 28,013



QUOTE(Brian Chandler @ Jul 13 2021, 08:50 AM) *

QUOTE(G-Oker @ Jul 13 2021, 05:46 PM) *

QUOTE(CharlesEF @ Jul 12 2021, 02:14 PM) *

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 05:13 AM