5 Replies Latest reply on May 10, 2017 5:32 PM by JR_Boulay

    Keep text "\"


      I want to keep the "\" in the static text below but the output shows it missing.  How can I maintain the "\" in the static text?



                                          type: "view",

                                          align_children: "align_top",

                                          alignment: "align_top",




                                                  type: "static_text",

                                                  name: "      *Note: Retrieve labeled files from c:\Automatically Labeled Documents folder.",







        • 1. Re: Keep text "\"
          Bernd Alheit Adobe Community Professional & MVP

          Use 2 backslashes \\

          • 2. Re: Keep text "\"
            try67 MVP & Adobe Community Professional

            Add a "\" before it.

            • 3. Re: Keep text "\"
              sargums46564804 Level 1

              Yay! Thx.

              • 4. Re: Keep text "\"
                JR_Boulay Adobe Community Professional



                Using 2 backslashes is the old school practice and it's not reliable.

                You should use the Unicode ID of the backslash instead, as for the ":", for the "*" and for any special character.


                The last line of the script should look like this:

                name: "\u002ANote\u003A Retrieve labeled files from c\u003A\u002FAutomatically Labeled Documents folder.",


                You can download this free tool to convert any character to its Unicode ID: http://abracadabrapdf.net/download/Texte2Unicode.pdf

                Enter your text in the first text field, clic anywhere else and voilà!





                • 5. Re: Keep text "\"
                  JR_Boulay Adobe Community Professional

                  In French (as in Spanish, Italian, German, etc.), we are used to handling accented and special characters in JavaScript strings.

                  This JavaScript:




                  Displays this alert:

                  Capture 1.png


                  (Do not look for any meaning in this sentence it is a pangram.)