For some Mac OS/Linux Machines, Java does not have default UTF-8 encoding. This is necessary when generating data with special characters (Swedish characters, Japanese characters, etc.).
The steps in this article can be used to manually set Java's character encoding to UTF-8. For this example, the screenshot examples are for Mac OS.
Step 1: Open bash.profile in a Terminal Window
Step 2: Add this line to the Shell start-up file
- Enter this line into your shell start-up file.
Step 3: Exit and Save Changes
Step 4: Run the Scenario
- Run the Scenario at the command line using the genrocket -r command.
- The following line will appear in the terminal window during test data generation:
Step 5: Open the Output File in an Editor such as TextEdit
The example below contains address information for Saudi Arabia: