Issue #2444💬 AnsweredOpened December 4, 2019by MariusDK0 reactions

Set charset of canvas or grapesjs to UTF-8

快速解答by artf

Hi @MariusDK the iframe in the canvas doesn't use any particular charset so it should depend on the parent page or at least, due to HTML5, be in UTF-8 FYI, if you need to get the iframe element (for any kind of manipulation) you can do this editor.Canvas.getFrameEl()

Read full answer below ↓

Question

Hey @artf ,

How to get UTF-8 encoding from canvas in angular 8. I need this because i encode btoa from frontend and send to server. Server use base64 to decode with UTF-8 and special characters like spanish are not recognized by server.

Please help me.

Answers (1)

artfDecember 8, 2019

Hi @MariusDK the iframe in the canvas doesn't use any particular charset so it should depend on the parent page or at least, due to HTML5, be in UTF-8 FYI, if you need to get the iframe element (for any kind of manipulation) you can do this editor.Canvas.getFrameEl()

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.