Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Stamp pdf Manually by using Chinese (UTF-8) results in random code.

by

Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › Stamp pdf Manually by using Chinese (UTF-8) results in random code.

  • This topic has 18 replies, 7 voices, and was last updated 5 years ago by admin.
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • Author
    Posts
  • April 15, 2011 at 6:18 am #3192
    iamot
    Member

    Hi,when I stamp pdf Manually by using Chinese (UTF-8) results in random code.

    Does the footer don’t support UTF-8 ?

    Thanks.

    April 15, 2011 at 6:23 am #31371
    amin007
    Participant

    Did you check the “Use UTF-8 Font” field from the PDF stamper settings?

    April 15, 2011 at 6:28 am #31372
    iamot
    Member

    I do check the “Use UTF-8 Font” field from the PDF stamper settings and I try to stamp a PDF file again, the same problem. It can show numbers and English, but can’t show Chinese.

    April 15, 2011 at 11:09 pm #31373
    amin007
    Participant

    Can you please paste some text here (that you are trying to stamp) so I can try copy it and try it on my test server.

    April 16, 2011 at 1:48 am #31374
    iamot
    Member

    OK。Thanks again.

    主動即主導2004.2.1 太多時候 我們被動.

    人際關係上 我們通常期待別人先開口 然後自己再回答

    這一般叫做悶騷.通常我們也都是逼不得已才開口請陌生人或朋友幫忙.很少人會去主動幫助別人 即使他知道別人或朋友遇到了困難.當我們不滿時 總是習慣悶著不說 直到某一天才主動攻擊.愛情上 我們被灌輸男人要主動 女人要被動.這不知道害死了多少女人放棄了她喜歡的人.爭吵時 我們總是難以主動去平撫僵局 而產生了不必要的冷戰.沒有必要去主動認錯 因為事情不一定是你做錯的 但要去主動的平撫這場紛爭.事業上 很少人主動創業.在社區中或社團中 也很少人主動辦一些活動.

    遇到朋友時 一些人會社交性地”主動”打招呼 但其實去不太想做 裝裝熱情而已.倒是在床上 男人常主動: ).遇到問題時 我們很少主動去解決 大多選擇逃避;做事情時 通常拖到最後一刻才主動去完成.這到底怎麼一回事?這是我想分享的重點.

    主動即是主導;被動即是被影響.這些現象只是顯示了大多數的人在許多領域上都是被影響點.成為主導點吧! 正隆

    如果你覺得我的文章不錯 請你也轉寄給你的好友

    And the following is what I want to stamp:

    作者授權給你觀看此作品。You are not allow to share this work to others.謝謝。

    April 16, 2011 at 1:49 am #31375
    iamot
    Member

    OK。Thanks again.

    主動即主導2004.2.1

    太多時候 我們被動.

    人際關係上 我們通常期待別人先開口 然後自己再回答

    這一般叫做悶騷.通常我們也都是逼不得已才開口請陌生人或朋友幫忙.很少人會去主動幫助別人 即使他知道別人或朋友遇到了困難.當我們不滿時 總是習慣悶著不說 直到某一天才主動攻擊.愛情上 我們被灌輸男人要主動 女人要被動.這不知道害死了多少女人放棄了她喜歡的人.爭吵時 我們總是難以主動去平撫僵局 而產生了不必要的冷戰.沒有必要去主動認錯 因為事情不一定是你做錯的 但要去主動的平撫這場紛爭.事業上 很少人主動創業.在社區中或社團中 也很少人主動辦一些活動.

    遇到朋友時 一些人會社交性地”主動”打招呼 但其實去不太想做 裝裝熱情而已.倒是在床上 男人常主動: ).遇到問題時 我們很少主動去解決 大多選擇逃避;做事情時 通常拖到最後一刻才主動去完成.這到底怎麼一回事?這是我想分享的重點.

    主動即是主導;被動即是被影響.這些現象只是顯示了大多數的人在許多領域上都是被影響點.成為主導點吧! 正隆

    如果你覺得我的文章不錯 請你也轉寄給你的好友

    And the following is what I want to stamp:

    作者授權給你觀看此作品。You are not allow to share this work to others.謝謝。

    April 16, 2011 at 9:06 pm #31376
    amin007
    Participant

    Looks like even BBPress is having a tough time recognize it. Are you sure it uses a UTF-8 characters? I will send you an email.

    April 16, 2011 at 11:59 pm #31377
    wzp
    Moderator

    @Amin

    The sample text in this topic does appear to be UTF-8 encoded and is displaying properly (in Chinese) on Firefox. I am emailing you the manual stamping results that I got. As per iamot, the footer is messed up.

    April 17, 2011 at 1:43 am #31378
    amin007
    Participant

    Hmmm… this is a Chrome thing then. I can’t see the text in Chrome or in IE. Looks like the Chinese/Hebrew/Thai are on a different level of UTF… LOL

    April 17, 2011 at 4:50 am #31379
    amin007
    Participant

    @iamot, I sent you a test copy of the PDF Stamper plugin where I added support of Chinese font. Let me know how it goes.

    December 22, 2011 at 10:31 pm #31380
    supertat
    Member

    Hi.

    Japanese font also get corrupted.

    If you think this is the same problem, could you send me the copy ?

    December 23, 2011 at 6:16 am #31381
    admin
    Keymaster

    I don’t fully understand what the deal is with Chinese and Japanese characters and PDF files but for some reason the standard UTF-8 doesn’t cover those language (just my findings from working with those fonts). We have added the following two fonts to handle Chinese:

    – mingliu

    – Big5

    To use them please do the following:

    1. Keep the “Use UTF-8 Font” checkbox checked in the settings.

    2. Open the “wp_pdf_stamp.php” file and search for the following line of code:

    define('WP_PDF_STAMP_USE_UTF_FONT', "1");

    Once you find it change that line to the following to make PDF stmaper use mingliu font:

    define('WP_PDF_STAMP_USE_UTF_FONT', "2");

    Alternatively, change that line to the following to use the Big-5 font:

    define('WP_PDF_STAMP_USE_UTF_FONT', "3");

    December 23, 2011 at 10:36 am #31382
    supertat
    Member

    Thank you.

    I tried both mingliu font and Big-5 font with “Use UTF-8 Font” checked, but Japanese characters (for example Hiragana or Katakana, which is not in Chinese character set) are replaced with other unreadable characters.

    I appreciate if you could make any Japanese font available with PDF Stamper.

    I know, for example, following fonts can handle Japanese characters.

    Meiryo, MS Mincho, MS Gothic, SimSun, MingLiU, Gungsuh, Arial Unicode MS.

    Is there anything else I can try or let you know ?

    December 24, 2011 at 9:03 am #31383
    admin
    Keymaster

    I have added a Japanese font support to the plugin. I will send you an email to organize testing of this.

    December 25, 2011 at 12:04 pm #31384
    admin
    Keymaster

    Just need to use the following to use Japanese font from now on:

    define('WP_PDF_STAMP_USE_UTF_FONT', "4");

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ