VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: funny-rabbit on September 12, 2020, 19:27:00 PM

Title: Charset correction in mail header
Post by: funny-rabbit on September 12, 2020, 19:27:00 PM
does anybody know how to correct the &38; Charset display error in the mails subject?

The & character is displayed in html short-code and this I want to change

What I assume is that the charset has to set to UTF-8?
Title: Re: Charset correction in mail header
Post by: pinochico on September 12, 2020, 23:16:02 PM
Google Search - html entities, UTF-8

What io you find before created this post?
Title: Re: Charset correction in mail header
Post by: funny-rabbit on September 13, 2020, 15:32:00 PM
I found a meta tag that encodes the characters with the utf-8 charset. but I don't know where to put that meta tag. does it have to go into the PHP mailer function of Joomla, someone said VirtueMart uses the Joomla mailer function.  >:(
Title: Re: Charset correction in mail header
Post by: funny-rabbit on September 13, 2020, 15:51:42 PM
forgot to say that the problem occurs in smartphone mail program. here is a screenshot of what it looks like.
(https://drive.google.com/file/d/1XC3kz5IBKrNjiNDbpdkrlb6wsuVqDeqq/view?usp=sharing)
https://drive.google.com/file/d/1XC3kz5IBKrNjiNDbpdkrlb6wsuVqDeqq/view?usp=sharing
Title: Re: Charset correction in mail header
Post by: pinochico on September 13, 2020, 17:19:22 PM
And what is this?:

R&S Beleuchtung

Where is comming?

Is name of product, name of status order, name of shop?

I think you must edit php for subject from VirtueMart mail sending, but I don't know where is exatly (i have to analyse and find):
1. We use VirtueMart mailing Manager for emails about orders
2. We don't use "&" in eshop name, orders status name, ...
3. If we use the char "&" in product name, then we are use html entities in admin for input before save, because name of product is used next in a lot of places in VirtueMart eshop.
Title: Re: Charset correction in mail header
Post by: funny-rabbit on September 14, 2020, 06:34:01 AM
it's name of shop.

do you know where the subject is located in the PHP file or charset definition has to be changed to utf-8? it can't be hard-coded? because subject has to be variable
Title: Re: Charset correction in mail header
Post by: GJC Web Design on September 14, 2020, 10:13:24 AM
$subject = (isset($view->subject)) ? $view->subject : vmText::_( 'COM_VIRTUEMART_DEFAULT_MESSAGE_SUBJECT' );

components\com_virtuemart\helpers\shopfunctionsf.php - line 814
Title: Re: Charset correction in mail header
Post by: funny-rabbit on September 14, 2020, 16:00:14 PM
people remain healthy. it's too hot to work today. I will look into your help tomorrow. what I'm looking for is where the mail function is and where the encoding format is that encodes special chars in the mail. in thunderbird no problem problem is in the smartphone mail program.