Internationalization Cookbook
This is my personal blog. The views expressed on these pages are mine alone and not those of my employer.

Setting the user and system locales

Q. Why localized files show question marks/damaged characters in the application X?

A. Most likely the application is ANSI. You have to set the system default locale to match the data you need to handle.

Now, why this happens is explained in detail here: How SBCS-MBCS-Unicode application interact with Windows.

In this post I will explain how to set the user and system locale. This is a question I had to answer it again and again. So I think answering it here, with screen-shots and all, will be useful in the long run.

Changing the system locale will not change the UI language, only what is considered ANSI code page. In fact, the XP description in Windows XP (Language for non-Unicode programs) is much more clear.

So, let’s start. The options for Windows XP are a bit different, so you can jump directly there.

Windows 2000 or XP in Classic Mode

From the Start menu select SettingsControl Panel.

Now double-click Regional Options and you will get a multi-tab dialog.

In the first tab (General), the drop-down list under Settings for the current user is used to set the user locale.

To access the system locales, click the Set default… button.

You will get another dialog with a drop-down list. From this list you select the system locale.

If the files necessary for the selected locale are not already installed (not checked in the Language settings for the system), you will be prompted for the install CD. If the files are already installed, you will be informed that you have all you need, and will be offered to use the already installed files. Click Yes.

You will then be prompted to reboot. The changes will not take effect until you reboot, so you have to do it.

This is it!

Windows XP

From the Start menu select All ProgramsControl Panel.

If the panel is in Category View mode, double-click on Date, Time, Language and Regional Options.

Now double-click Regional Options and you will get a multi-tab dialog.

In the first tab (Regional Options), the drop-down list under Standards and formats is used to set the user locale.

In the third tab (Advanced), the drop-down list under Language for non-Unicode programs is used to set the system locale.

If the files necessary for the selected locale are not already installed (not checked in the Language settings for the system), you will be prompted for the install CD. If the files are already installed, you will be informed that you have all you need, and will be offered to use the already installed files. Click Yes.

You will then be prompted to reboot. The changes will not take effect until you reboot, so you have to do it.

This is it!

4 Comments to “Setting the user and system locales”

  1. ben david says:

    Dear Sir,

    Thanks a lot for the instructions received for windows XP.

    I have tried with windows 7, but it is not the same.
    Do you have a similar instruction document for win 7 ?

    Best Regards,

    Ben David

    • Mihai says:

      “Control Panel” – “Region and Language” – “Administrative” tab – “Language for non-Unicode programs”
      You are right, might be a good idea to update this with info for Win 7 (and maybe even 8 :-))

  2. Robert Pattinson says:

    hi there great little web-site you have right here ;) I am using the matching theme on mine but for whatever odd reason it seems to load more rapidly on your site despite the fact that this blog contains a bit more content material. Have you been operating any specific plugins or widgets which speed it up? Do you think you could reveal the titles so I could use these in my own online site so twilight breaking dawn followers could watch twilight eclipse online trailers and videos more easily I’d personally always be pleased – cheers in advance :)

  3. Mihai says:

    @Robert
    I did nothing special.

    I have no plugins installed (even the standard ones are disabled :-) )

    The theme is something that tries to imitate my old look and feel (from before moving to WorldPress).
    Started from the default theme, then heavily modified it and cleaned it.
    Other than that, I try to keep the html tags of the articles as clean as possible (I do it all by hand, no WYSIWYG editor).

    And sorry, I have no clue what you mean by “reveal the titles,” I’m kind of new to WordPress.

Leave a comment to Robert Pattinson