Automattic / Automattic/jetpack

Post by Email: spaces added to title with UTF-8 characters

Open
#19,941 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Post By Email [Focus] i18n [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

1. Compose an email using one of these text as title:

- このテキストは継続的なメッセージである必要がありますこのテキストは継続的なメッセージである必要があります
- ภาษาไทยเป็นภาษาที่ไม่ได้ใช้การเว้นวรรคเพื่อแบ่งคำ
- การเว้นวรรคในภาษาไทยจะใช้เพื่อการแบ่งประโยคเป็นหลัก
- ข้อความตัวอย่างนี้ควรจะเป็นข้อความที่ต่อเนื่อง

2. Send the email to your unique email address (**********@post.wordpress.com)
3. Go to 'Posts' in your WordPress dashboard and observe the title

#### What I expected
Post's titles should be the same as email's titles.

#### What happened instead
Space character appears in post's titles

**Screenshots**
![added-space-in-title](https://user-images.githubusercontent.com/6592791/119669712-77264000-be62-11eb-89a6-cfcf3cc4f028.png)

**Emails sent (anonymized)**
- [example-email-1.txt](https://github.com/Automattic/jetpack/files/6547223/example-email-1.txt)
- [example-email-2.txt](https://github.com/Automattic/jetpack/files/6547226/example-email-2.txt)
- [example-email-3.txt](https://github.com/Automattic/jetpack/files/6547228/example-email-3.txt)
- [example-email-4.txt](https://github.com/Automattic/jetpack/files/6547230/example-email-4.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.