Setting the encoding in the server trace

You can resolve problems with the sample server trace information by setting the encoding in the sample server start script.

Symptoms

When you start the sample server, the trace might display meaningless characters depending on the operating system language. You can fix this by setting the encoding in the sample server start script.

Environment

To display the correct characters, you must specify the encoding in the startserver.bat script.

Resolving the problem

Procedure

  1. Open a command prompt, type the chcp command, and press Enter. The window displays the number of the active console code page.
  2. Search for the Java™ encoding canonical name in Supported Encodings. For example, on a French machine the encoding might be Cp850.
  3. Open <InstallDir>/shared/bin/startserver.bat, and add the following line: set ANT_OPTS=-Dfile.encoding=Cp850.