Menu

problems with Polish characters

Help
2005-09-27
2013-03-22
  • Karol Oslowski

    Karol Oslowski - 2005-09-27

    Hello,

    Recently I've instaled projectbench and I have a problem:

    Polish national characters.

    Does anybody know how to make projectbench work with non-standard letters ?

    kind regards

    k.

     
    • Philip X

      Philip X - 2005-09-27

      Are you having problems entering polish characters or displaying them?
      Any specific pages or all of them?

      thanks.
      ph

       
    • Karol Oslowski

      Karol Oslowski - 2005-09-27

      I can enter them without problems but after adding them to the database. instead of them I see:
      "łąćżź"

      Maybe there is the problem with the database ? Or maybe it is something with the page header ?

      kind regards

      k.

       
    • Philip X

      Philip X - 2005-09-28

      No, i think it's the code converting the chars too much.

      Do me a favor please.
      Try typing some specials characters in the title of the bug as well as the description. Then when viewing the bug, see if it makes a difference (I expect the ones in the title to show okay while the ones in the description to show as &#xxx;)

      If so, look up phxlib.inc.php, line 378 (should be in function format_code) and replace:
      return strtr(nl2br(htmlentities($text, ENT_QUOTES)), "\r\n'", '  ');
      with
      return strtr(nl2br($text), "\r\n'", '  ');

      Now return to the View Issue page and see if it displays the right chars in the description part.
      Then please once more replace the line above with:
      return strtr(nl2br(htmlspecialchars($text)), "\r\n'", '  ');

      And check what it displays.
      I'd really appreciate if you let me know what the 3 scenarios show:
      1. Title vs Description
      2. Description without htmlentities
      3. Description with htmlspecialchars

      Thanks a million.
      ph.

       
      • Karol Oslowski

        Karol Oslowski - 2005-10-01

        The results are as such :

        You were right and the special characters in the title were displayed corectly without any changes, after changing the  return statement to:
        1. return strtr(nl2br($text), "\r\n'", ' ');
          Both Title and Description are displayed corectly.
        2.return strtr(nl2br(htmlspecialchars($text)), "\r\n'", ' ');
        The Title is still displayed corectly but the description is not displayed at all.

        So I guess changing the function format_code to :
        << return strtr(nl2br($text), "\r\n'", ' ');  >> solves the problem.

        Thank you once again!

        kind regards

        k.

         
    • Karol Oslowski

      Karol Oslowski - 2005-09-30

      Thank you for your answer. I'm sorry not to answer so long but I'm extremely busy recently and probably I'll answer you tomorrow.

      Once again thank you for your help!

      k.

       
      • Philip X

        Philip X - 2005-09-30

        Take your time...

        And thanks for helping!

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.