Title: Wrong characters at Post Type block
Last modified: September 25, 2020

---

# Wrong characters at Post Type block

 *  Resolved [Tesacu](https://wordpress.org/support/users/teresaezc/)
 * (@teresaezc)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/)
 * Hi!
 * Post Type block doesn’t get excerpt accents (Spanish) properly and they’re substituted
   for strange symbols.
 * Is there any way to fix that? (I realize my DB and tables have the right format
   and that only happens with Gutentor.)
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-characters-at-post-type-block%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/#post-13457584)
 * Hello [@teresaezc](https://wordpress.org/support/users/teresaezc/) ,
 * Please have a look at Troubleshooting documentation [Wrong Excerpt Characters](https://www.gutentor.com/documentation/article/wrong-excerpt-characters/).
 * Let me know if this fixed the issue.
 * Best Regards!
 *  Thread Starter [Tesacu](https://wordpress.org/support/users/teresaezc/)
 * (@teresaezc)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/#post-13457689)
 * Yeah, it fixes the issue.
 * Thank you, [@codersantosh](https://wordpress.org/support/users/codersantosh/)!
   🙂
    -  This reply was modified 5 years, 8 months ago by [Tesacu](https://wordpress.org/support/users/teresaezc/).
 *  [Nilo Velez](https://wordpress.org/support/users/nilovelez/)
 * (@nilovelez)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/#post-13457897)
 * Hi, [@codersantosh](https://wordpress.org/support/users/codersantosh/) I just
   found your bug.
 * In `/gutentor/includes/functions.php`, line 162 you are using the PHP function`
   substr()` to trim your custom excerpt
    [https://plugins.trac.wordpress.org/browser/gutentor/trunk/includes/functions.php#L162](https://plugins.trac.wordpress.org/browser/gutentor/trunk/includes/functions.php#L162)
 * You should change it to the multibyte version `mb_susbtr()`:
 * `$the_excerpt = $the_excerpt ? mb_substr( $the_excerpt, 0, (int) $excerpt_length).'&
   hellip;' : '';`
 * (note I also change the three dots to the html entity `&hellip;` which renders
   three dots using a single character)
 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/#post-13473937)
 * Hello [@nilovelez](https://wordpress.org/support/users/nilovelez/),
 * Thank you so much for your suggestions.
    We have made changes according to it
   and will update on WordPress SVN on next update.
 * Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Wrong characters at Post Type block’ is closed to new replies.

 * ![](https://ps.w.org/gutentor/assets/icon.svg?rev=2144459)
 * [Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor](https://wordpress.org/plugins/gutentor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutentor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutentor/)
 * [Active Topics](https://wordpress.org/support/plugin/gutentor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutentor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutentor/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-characters-at-post-type-block/#post-13473937)
 * Status: resolved