To remove illegal characters or entities from a TMX file, there are several things you can do:
- If you have access to one, you can use a TMX validator to check the file and alert you to any problems in its contents. You may be able to fix these problems yourself by editing the TMX file directly using a text editor (e.g. Notepad).
- You also have the option of open in the file with an application capable of editing TMX and attempting to repair the file that way.
- Use a PowerShell script we have prepared to deal with this situation.
We have developed a script that you can download and run that will analyze a TMX file and alert you to common problems with TMX files. The script will locate certain characters that are not allowed by the TMX standard and replace them with spaces, which may be enough to make the file usable in Déjà Vu. To run this script:
- Download the script file.
- Extract the content of the downloaded zip file to the folder where the TMX file you wish to process is stored.
- Right-click on the script file and, in the menu that pops up, select the option Run with PowerShell.
- The script will show you a File Open dialog that will allow you to select the project file you want to check.
- If the script finishes correctly, the TMX file you ran it on should now be usable in Déjà Vu.
If after step 3 you see a message like this:
File .\Fix-TMX.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
read this article for more information about how to proceed.