Scripting > mrScriptBasic overview > Working with foreign languages
 
Working with foreign languages
When you work with a language that is in a different “family of languages” from the default language set for your computer, you need to make sure that you use the Unicode or UTF-8 text encoding option for all text files.
This means that you need to save your mrScriptBasic (.mrs and .dms) files using the Unicode or UTF-8 text format option. However, if your .mrs or .dms file contains #include preprocessor directives, you must save your file and all include files using the Unicode option. See #include for more information.
Similarly, if you create a text file in your script using the File System Object CreateTextFile method, make sure you specify Unicode encoding by setting the third parameter to True, for example:
Dim fso, txtfile
Set fso = CreateObject("Scripting.FileSystemObject")
Set txtfile = fso.CreateTextFile("JapaneseLabels.txt", True, True)
You will also need to make sure that the text file uses a font that supports the characters of the language you are using. You can change to a suitable font when you open the text file.
Technically a “family of languages” is known as a code page. And when you set a language as the default for your computer, you automatically select that language's code page as the default. You select the default language for your computer in the Regional Settings dialog box in Control Panel. Use the Select Default button on the General tab. This opens the Select System Locale dialog box, in which you can select the default language.
See also
mrScript Command Line Runner
mrScriptBasic FAQs and troubleshooting
mrScriptBasic overview