Fog Creek Software
Discussion Board




Encoding problem

Fortunately, a while ago Joel recommended Michael S. Kaplan's 'Internationalization With Visual Basic, ' which was a great help.

However, we still have a really annoying problem.  VB keeps changing the character encodings on the VB forms.

In the form definition, the bit hidden away by the IDE the fonts are defined like this:

BeginProperty Font
        Name            =  "Arial"
        Size            =  9.75
        Charset        =  0
        Weight          =  700
        Underline      =  0  'False
        Italic          =  0  'False
        Strikethrough  =  0  'False

When a form is loaded up on some PCs it will silently change the charset without warnings.

Personally, I've developed the habit of diffing before checking in my work and reseting the charsets back to 0 using a text editor.

This method is far from satisfactory, and I'm wondering if anybody knows of a better method of ensuring that the IDE only makes the changes I ask for.

Ged Byrne
Friday, October 10, 2003

what locale is your system running in? (e.g. what is CP_ACP)

Joel Spolsky
Friday, October 10, 2003

Sounds like you might have machines suffering the old 'oh I can't be bothered to tell it its in the UK' setup problem.

Simon Lucy
Saturday, October 11, 2003

What machines? What OS? Remember win 9* sets code pages.

Stephen Jones
Saturday, October 11, 2003

The locale varies, because where supporting a system throughout europe.

The main ones are English (UK), Greek and Hungarian.

I'm running Windows 2000.

The problem is that we are constantly having to switch between these locales to develop and test in these different locales.

The strangest thing is that even though I am currently set for English (UK) on my PC, and yet VB still wants to change the charset to 1250 all of the time.

Ged Byrne
Saturday, October 11, 2003

*  Recent Topics

*  Fog Creek Home