Developer Documentation Library > Scripting > mrScriptBasic overview > Working with other languages
 
Working with other languages
When you work with a language that is in a different “family of languages” from the default language set for your computer, you must 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 the .mrs or .dms file contains #include preprocessor directives, you must save the file and all include files by using the Unicode option. For more information, see #include.
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 must also 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.
A “family of languages” is known as a code page. When you set a language as the default for your computer, that language's code page is also set as the default. You select the default language for your computer in the Regional Settings dialog in the Control Panel (use the Select Default button on the General tab). This opens the Select System Locale dialog, in which you can select the default language.
See also
mrScript Command Line Runner
mrScriptBasic FAQs and troubleshooting
mrScriptBasic overview