Menu

Reserved characters??????

2004-01-15
2004-01-18
  • Boudewijn Sjouke

    Hi all,

    Are there any reserved characters, never, at any time, under no circumstances to use in languagefiles I edit with the language editor?
    I got some parsing errors on my languagefiles and I think it may be caused by the characters I use in the text.
    Thnx!
    Boudewijn.

     
    • Arne Eckmann

      Arne Eckmann - 2004-01-16

      Hi Boudewijn

      Have you checked for unwanted bytes before the php opening tag or after the php closing tag?

      I'm aware that the language editor doesn't generate such unwanted bytes, but it won't take long to check ;-)

      Best regards,
      Arne

       
      • Boudewijn Sjouke

        Hi Arne,

        In the meanwhile, this problem is solved. One way or another the file contained a text with no variable name. And no, no unwanted bytes at the beginning. I guess it could be caused by using double quotes in the text, that's why I pose the question. Want to make sure that I'm not causing misery myself, before I report a bug....

        Boudewijn.

         
    • Arne Eckmann

      Arne Eckmann - 2004-01-16

      Hi again Boudewijn

      I just encountered a parse error in my language file, land.da.php, which was caused by unescaped quotes that is:

      "Fj til mine favoritter"

      was found, when it had to be:

      \"Fj til mine favoritter\"

      Best regards,

      Arne

       
      • Boudewijn Sjouke

        Hi Arne,

        I just read your last message. That's exactely what I mean. So if I understand it right, you have to type: \"this is between quotes"\ to get is properly functioning? Are there any characters for which the same applies?
        Thnx
        Boudewijn

         
    • Arne Eckmann

      Arne Eckmann - 2004-01-16

      Hi Boudewijn

      No: not \"this is between quotes"\ but
      \"this is between quotes\"

      I think $ needs to be escaped too = \$ but I'm not sure how many such special characters exists.

      I tried to search the documentation if anything was mentioned about Metachars, tainting, untainting and taint mode - but unfortunately I found nothing of the sort ;-(

      I wonder if not John would provide a list of characters which must be escaped ?

      Best regards,

      Arne

       
    • Arne Eckmann

      Arne Eckmann - 2004-01-16

      Sorry - $ must not be escaped if the point is to show the value contained in the variable:

      with

      <?php
      $visdet = "fest og farver";
      echo "\$visdet = $visdet";
      ?>

      the output will be:

      $visdet = fest og farver

      Best regards,
      Arne

       
    • Arne Eckmann

      Arne Eckmann - 2004-01-16

      Hi again Boudewijn,

      You said:

      > One way or another the file contained a text with
      > no variable name.

      I have also observed that phenomena, which must be a flaw in the language editor, but since I was busy doing translations I neglected to report this bug ;-(

      Best regards,

      Arne

       
    • Phantomas

      Phantomas - 2004-01-18

      Normally there are any chars you should not use in a message while you use the language editor (in the latest release).
      Chars like " should be converted automatically by the script.

      But if you should find a prob please write it and I will take a look on it :-)

      In earlier vers you had a prob with empty messages and some others but not anymore...

      bye, Kurt

       
      • Boudewijn Sjouke

        Hi Kurt,

        That's what I wanted to find out: the editor can handle any character without restriction.
        In case of errors, caused by the editor, i'll post a report and/or send you the corrupted langfile.
        Thnx!
        Boudewijn.

         

Log in to post a comment.