Oxygen WebHelp problem with illegal characters in the search
Posted: Wed Sep 11, 2013 1:19 am
I noticed the following problem with the search in Oxygen webhelp output that I’m building in Oxygen Author 14.2. When there is the combination of characters “\u” (Unicode escape) in the content, for example, “C:\Users” or “C:\Users”, and it gets indexed and put in one of the search index files (index-1.js, index-2.js, or index-3.js), the following exception is thrown when webhelp is loaded:
Uncaught SyntaxError: Unexpected token ILLEGAL
Then the whole search index file is invalidated, i.e. no search results will be displayed for any of the terms included in the index file that contains the illegal character combination.
Is there a way around it? Any Oxygen settings that can be used or a way to escape this combination when the index files are written, so that the JavaScript could be validated? I would even settle for excluding such expressions from indexing altogether, but haven’t come across an exclusions list for the webhelp search. If there is one, where can I find it?
Thank you.
Helena
Uncaught SyntaxError: Unexpected token ILLEGAL
Then the whole search index file is invalidated, i.e. no search results will be displayed for any of the terms included in the index file that contains the illegal character combination.
Is there a way around it? Any Oxygen settings that can be used or a way to escape this combination when the index files are written, so that the JavaScript could be validated? I would even settle for excluding such expressions from indexing altogether, but haven’t come across an exclusions list for the webhelp search. If there is one, where can I find it?
Thank you.
Helena