FortisMain Page | About | Help | FAQ | Special pages | Log in

Validate UTF8

From Fortis

Validate-UTF8 is a command line application that checks memories for errors. It can be found in the Fortis install directory (usually in C:\Program Files\Multiling\Fortis Revolution) in the \bin folder.

Using Validate-UTF8

Validate-UTF8 cannot be run by double-clicking on it. You must run it from the command line.

  1. Copy validate-utf8.exe from the Fortis folder to the folder with your .fff files.
  2. Press Windows-R (or click on the Start menu and click on "Run...")
  3. Type "cmd" into the Open field and press Enter (or click OK.) A black DOS Prompt should come up.
  4. In Windows, click on the address bar of the folder you are working in and press Ctrl-C (copying the address)
  5. Click on the Prompt window and type "cd " (the space at the end is important.) Right-click on the prompt and click Paste. Now press enter. (If the path has spaces in the name, like "Program Files" or "My Documents", you must put quotes around the path.)
  6. Make sure the prompt shows the correct folder, followed by a ">" sign and blinking cursor.
  7. To verify all .fff files in the folder, type "validate-utf8.exe"

By default, this will check all .fff files. However, you may specify a specific file by putting its full name in quotes after the ".exe". For example, "validate-utf8.exe test.fff" will check the test.fff file in the same directory. You can also specify a folder and use "*.fff" (in quotes) to check all the files in that folder. If you specify a file's full path, there's no need to copy the executable to the folder the files are in (but you might still need quotes.)

If your files are in My Documents, you'll need to find your My Documents folder under C:\Documents and Settings\ and use that address.

Command Line Arguments

When running Validate-UTF8, you can put any of the following options after the ".exe". For example, "validate-utf8.exe /help" will show you this list:


Option Description
/h, /help print this usage message and exit
/noquiet report warnings, errors, and per-file counts [default]
/q, /quiet report errors and per-file counts
/Q, /veryquiet report per-file counts only
/norepair don't change any files, just report errors [default]
/r, /repair repair any bad UTF-8 encodings
/nobackup when repairing files, don't keep a backup of the original
/b, /backup when repairing files, keep a backup copy of the original [default]
/log /l write a copy of messages to validate-utf8.log
/nolog do not write a log file (choose this if you get errors about not being able to open up the log file for writing.)
/s, /subdirs process files in all named subdirectories
/bom:MODE




where MODE is 'yes', 'no' or 'maybe' ['maybe' is the default]

yes: if byte-order-mark is missing, generate an error

no: if byte-order-mark is present, generate an error

maybe: byte-order-mark may or may not be present

Retrieved from "http://starfish.multiling.com/wiki/index.php/Validate_UTF8"

This page has been accessed 767 times. This page was last modified 18:26, 30 March 2011.


Find

Browse
Main Page
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...