It is great that BC3 support Unicode, but there seems to be a missing functionality in BC 3.0.2 . When an file is opened in File View, BC always use Western European as file encoding, which is not good. For a non-English country user, he always has to manually change the encoding to "his own default" every time he views an MBCS file, -- it is quite inconvenient. So there should be a way to let the user determine what should be the *default* encoding for him.
How to set a default encoding for File View
Collapse
X
-
By default, file encodings are detected. In your case, the detection is failing. To change the default encoding in 3.0.2:- Select Tools -> File Formats....
- Click on the appropriate one (C,C++,C# Source in your case) and switch to the "Conversion" tab.
- In the "Miscellaneous" group, change "Encoding" appropriately.
- Click "Save".
Erik Scooter Software -
Thank you. That's just what I'm seeking. But isn't it better to make ANSI(actually system locale based on Windows) the default when encoding auto-detection fails -- just like notepad.exe opens a file in ANSI encoding by default. I think most users like this, especially for non-English version Windows users.Last edited by chjfth; 25-Aug-2008, 09:28 PM.Comment
-
The auto-detection doesn't "fail". It's a heuristic with weights for the various encodings and we just use the one that it thinks is best. There's never a time where doesn't return something, even if it isn't very good. I agree that it should weight the system's codepage higher, but it's a function provided by Microsoft, so we can't tweak its behavior.Zoë P Scooter SoftwareComment
Comment