Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to let DESCRIPTION can be other charset

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    6 Posts 3 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      horsedragon
      last edited by

      Dear all
      In any edit page(etc, firewall_nat_edit), if I input DESCRIPTION entry in other charset(for example, I input chinese DESCRIPTION), when I save, the system is broken, you must manual edit xml file and delete the DESCRIPTION in chinese, and reboot to access web config.
      how can I use DESCRIPTION in chinese? which modify can I need to do?
      thanks very much!

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        Known issue with no work around.
        http://redmine.pfsense.org/issues/show/320

        1 Reply Last reply Reply Quote 0
        • H
          horsedragon
          last edited by

          yes, I see this issue, can I modify maual? and how to modify, the reason is XML not support other charset? or PHP not support other charset? or I modify do_input_valid() in the guiconfig.inc can let it to support? thanks very much!

          1 Reply Last reply Reply Quote 0
          • A
            azzido
            last edited by

            PHP 5.x does not natively support multibyte strings so trying to get PHP to handle them is a major PITA. All string functions assume that 1 byte is 1 character so doing strlen on a single multibyte character will not return 1.

            Redmine ticket describes using extended ASCII characters that are still single byte chars so using them is not going to break all the string functions. Chinese on the other hand requires multibyte character support.

            1 Reply Last reply Reply Quote 0
            • A
              azzido
              last edited by

              Interesting article on PHP(v6) + Unicode https://lwn.net/Articles/379909/

              1 Reply Last reply Reply Quote 0
              • H
                horsedragon
                last edited by

                thanks, but when I use m0n0wall 1.2, 1.3, I can use other charset without change any source code!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.