Site logo

Special characters

Visualize special characters and CharCodeString functions

Inserting text and special characters at the insertion point

Example of comparison between just a subset of the visible letters

var illegalChars = /[^a-z0-9]+/g;
var cleanTitle = titlePart.lowercase().replace(illegalChars,'');
var match = -1 !== filename
    .lowercase()
    .replace(illegalChars,'')
    .search(cleanTitle);

Example of cleaning the text

function cleanText(text) {
    return text.replace(/[^\x20-\x7E]/g, '').replace(/^\s+|\s+$/g, '').toLowerCase();
}

If you have a layout where text is tagged with EasyCatalog field tags.
Those field tags are special characters that contain all relevant information for EasyCatalog.
Unicode value is FEFF.
Also note that FEFF special characters are used by InDesign for various purposes.
Fully apart from a plug-in like EasyCatalog. For example for InDesign Notes, Index Markers, XML tagging, PDF Comments.
Within InDesign you cannot find FEFF special characters with a GREP pattern. Instead you have to do it with Text Find and look after <FEFF>.