mjmlio / vscode-mjml

MJML preview, lint, compile for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml
MIT License
178 stars 25 forks source link

HTML export/Copy Encoding problem #29

Open DVW-Design opened 2 years ago

DVW-Design commented 2 years ago

Before you open an issue, please check if a similar issue already exists or has been closed before.

Expected behavior

Exported HTML code should not alter diactritic signs. Encoding is wrong. Event if setting mjml.minifyHtmlOutput is set to false

Actual behavior

HTML Code export is not exploitable. I have to use mjml.app to copy/export code

Steps to reproduce the problem

  1. Open mjml file
  2. Export html or copy HTML command via VSCode
  3. Paste the code in text editor

Code sample

<tr><td align="left" class="text dark-mode-text" style="font-size:0px;padding:0px 0px 54px 0px;word-break:break-word;"><div style="font-family:Trebuchet MS;font-size:30px;font-weight:400;letter-spacing:0px;line-height:35px;text-align:left;color:#ffffff;">Bien plus qu'un simple slogan, le c**√©l√®**bre ‚**Äú**Vorsprung durch Technik‚**Äù** <em>(L**‚Äô**avance par la technologie)</em> est l'expression d'un √©tat d'esprit. Entre innovation et progr√®s,<br>Audi n‚Äôa de cesse de r**√©**inventer la mobilit√© de demain.</div></td></tr>

Screenshot / GIF

Capture 2022-07-28_07-17-10_PM

Specifications

alejandrosrez commented 2 years ago

In my case it only happens when using the "Copy" functionality. If I use the "Export" one it works (with Spanish/Catalan accents).

DVW-Design commented 2 years ago

Yes, I can confirm Export works in French. Strange the Copy works differently

Le 2 août 2022 à 13:19, Alejandro Suárez @.***> a écrit :

In my case it only happens when using the "Copy" functionality. If I use the "Export" one it works (with Spanish/Catalan accents).

— Reply to this email directly, view it on GitHub https://github.com/mjmlio/vscode-mjml/issues/29#issuecomment-1202351601, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUWWAIFDMOGEX5MJXIBCIPDVXD75XANCNFSM546CE72Q. You are receiving this because you authored the thread.



David Viard – DVW Design Directeur artistique, UX/UI Designer, Chef de projet, Consultant Digital Art Director, UX/UI Designer, Digital Project Manager, Consultant

Mobile : +33 (0)6 68 49 06 04

Site : https://dvw.design LinkedIn : https://www.linkedin.com/in/david-viard/


iRyusa commented 1 week ago

Can you check with 2.x ?