• Resolved seorimpaek

    (@seorimpaek)


    Hi, thank you for the great plugin. I just have one issue.

    Some korean characters are displayed as ? on the live site. this doesn’t happen when first writing a review, or anywhere else on the site. Does anybody know why?

    Thank you very much

    • This topic was modified 4 years, 11 months ago by seorimpaek.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    First thing to do:

    1. Add the following snippet to your theme’s functions.php file (or use the Code Snippets plugin).

    add_filter('site-reviews/get/review', function ($review, $post) {
        glsr_debug($post, $review, $review->build()->values);
        return $review;
    }, 10, 2);

    This will print the WordPress Post object, the Review object, and the generated review HTML for each review to your page.

    Once you have done this, refresh the page and see if the ? characters exist in each of the three (Post object, Review object, HTML).

    If they exist in the Post object, then these characters are being saved to the database when a review is submitted,

    If they do not exist in the Post object but do in the Review object, then these characters are being introduced after the review has been fetched from the database.

    If they do not exist in the Post object or Review object, but they do in the generated HTML, then these characters are being introduced when the review HTML is being generated.

    Once I know this, I will be able to help further.

    Also, after you have performed this test, please remove the code snippet.

    Thread Starter seorimpaek

    (@seorimpaek)

    Thank you very much for helping

    The characters are printed correctly in both the Post object and the Review object. Only the printed HTML seems to have this issue.

    Thank’s again

    • This reply was modified 4 years, 11 months ago by seorimpaek.
    Plugin Author Gemini Labs

    (@geminilabs)

    Can you paste the text here that gets mangled in the HTML so I can do some tests?

    Thread Starter seorimpaek

    (@seorimpaek)

    the letter ? is always displayed wrong.

    Plugin Author Gemini Labs

    (@geminilabs)

    @seorimpaek Please update to v4.5.2

    Thread Starter seorimpaek

    (@seorimpaek)

    Omg, Thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘some korean characters are displayed as ?’ is closed to new replies.