Author Topic: Charset correction in mail header  (Read 304 times)

funny-rabbit

  • Beginner
  • *
  • Posts: 10
  • A beginner
Charset correction in mail header
« 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?
Joomla 3.9.21 - VM 3.8.4 - PHP 7.3.2

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 651
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Charset correction in mail header
« Reply #1 on: September 12, 2020, 23:16:02 pm »
Google Search - html entities, UTF-8

What io you find before created this post?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

funny-rabbit

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: Charset correction in mail header
« Reply #2 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.  >:(
Joomla 3.9.21 - VM 3.8.4 - PHP 7.3.2

funny-rabbit

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: Charset correction in mail header
« Reply #3 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
Joomla 3.9.21 - VM 3.8.4 - PHP 7.3.2

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 651
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Charset correction in mail header
« Reply #4 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

funny-rabbit

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: Charset correction in mail header
« Reply #5 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
Joomla 3.9.21 - VM 3.8.4 - PHP 7.3.2

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9779
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Charset correction in mail header
« Reply #6 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

funny-rabbit

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: Charset correction in mail header
« Reply #7 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.
Joomla 3.9.21 - VM 3.8.4 - PHP 7.3.2