Menu

#44 UTF8 question

v1.3
open
nobody
None
5
2015-09-16
2015-09-16
Pavel
No

Hello!
Thank you for the library.
I don't no if it is bug or some additional settings needed.
For some reason strings which consist of UTf8 symbols are cut 2-4 times.
For example, $sect->writeText('€€€€') creates text '€' so 3 last chars are lost.
How it can be fixed? Thanks.

Related

Bugs: #44

Discussion

  • Pavel

    Pavel - 2015-09-16

    I discovered that if mbstring.func_overload in php.ini is set to 0 everything works correctly. So is it one of the library requirements?

     
    • Steffen Zeidler

      Steffen Zeidler - 2015-09-16

      Hello Pavel,

      thanks for your investigation. mbstring function overloading is not a
      requirement, so it is a bug.

      Best regards,
      Steffen

      Am 16.09.2015 um 12:37 schrieb Pavel:

      I discovered that if mbstring.func_overload in php.ini is set to 0
      everything works correctly. So is it one of the library requirements?


      [bugs:#44] http://sourceforge.net/p/phprtf/bugs/44/ UTF8 question

      Status: open
      Group: v1.3
      Created: Wed Sep 16, 2015 09:53 AM UTC by Pavel
      Last Updated: Wed Sep 16, 2015 09:53 AM UTC
      Owner: nobody

      Hello!
      Thank you for the library.
      I don't no if it is bug or some additional settings needed.
      For some reason strings which consist of UTf8 symbols are cut 2-4 times.
      For example, $sect->writeText('€€€€') creates text '€' so 3 last chars
      are lost.
      How it can be fixed? Thanks.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/phprtf/bugs/44/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #44

      • Steffen Zeidler

        Steffen Zeidler - 2015-09-16

        Hello again,

        I was answering to fast. mbstring.overload_func = 0 is the php default
        and you should use it for multibyte aware php applications. PHPRtfLite
        is aware of multibyte strings and handles them well. In parts of the
        library originial php functions for example strlen() is used to find out
        the number of bytes a string has. This will return the wrong result, if
        mbstring.func_overload is activated. So it is not a bug, it is a library
        requirement not to overload mbstring functions.

        I hope, I could help you with my answer.

        Best regards,
        Steffen

        Am 16.09.2015 um 20:51 schrieb Steffen Zeidler:

        Hello Pavel,

        thanks for your investigation. mbstring function overloading is not a
        requirement, so it is a bug.

        Best regards,
        Steffen

        Am 16.09.2015 um 12:37 schrieb Pavel:

        I discovered that if mbstring.func_overload in php.ini is set to 0
        everything works correctly. So is it one of the library requirements?
        
        ------------------------------------------------------------------------
        
        /[bugs:#44] <http://sourceforge.net/p/phprtf/bugs/44/>
        http://sourceforge.net/p/phprtf/bugs/44/ UTF8 question/
        
        /Status:/ open
        /Group:/ v1.3
        /Created:/ Wed Sep 16, 2015 09:53 AM UTC by Pavel
        /Last Updated:/ Wed Sep 16, 2015 09:53 AM UTC
        /Owner:/ nobody
        
        Hello!
        Thank you for the library.
        I don't no if it is bug or some additional settings needed.
        For some reason strings which consist of UTf8 symbols are cut 2-4
        times.
        For example, $sect->writeText('€€€€') creates text '€' so 3 last
        chars
        are lost.
        How it can be fixed? Thanks.
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/phprtf/bugs/44/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        [bugs:#44] http://sourceforge.net/p/phprtf/bugs/44/ UTF8 question

        Status: open
        Group: v1.3
        Created: Wed Sep 16, 2015 09:53 AM UTC by Pavel
        Last Updated: Wed Sep 16, 2015 10:37 AM UTC
        Owner: nobody

        Hello!
        Thank you for the library.
        I don't no if it is bug or some additional settings needed.
        For some reason strings which consist of UTf8 symbols are cut 2-4 times.
        For example, $sect->writeText('€€€€') creates text '€' so 3 last chars
        are lost.
        How it can be fixed? Thanks.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/phprtf/bugs/44/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #44

        • Pavel

          Pavel - 2015-09-17

          Hello, Steffen!

          Thank you for the help. mbstring.overload_func = 0 is a common value, but some CMS require mbstring functions overloading.
          I'll keep in mind that mbstring.func_overload must be set to 0 for the lib.

          Kind regards,
          Pavel

           

Log in to post a comment.