I tried the firmware update method,but in the final steps when i got the chdk main menu up i could not get the shortcut button to function properly to get the default chdk default scriptf(alt) at the bottom left of the main screen.
If you got to the point where you could get the CHDK menus to appear then you succeeded in loading CHDK. Or did you mean you were only able to see the CHDK bootup splash logo screen (rather than the CHDK menus) ?
For the SX40, the default shortcut key for <ALT> mode is the Print/Shortcut button to the left of your viewfinder. It can be changed from the CHDK menus to use the Flash or Video buttons instead.
Also, are you sure you have the right firmware version ? There are four supported releases for the SX40 and only one of them will work properly.
That why i decided to try cardrtricks using the bootable method,but in order to use cardtricks i wanted to know
what code i should save the ver.req file and vers.req file in Ansa code or utf-8 code..
The ver.req file is only needed to help you find your camera firmware version. Card Tricks will format and load your SD card without it (assuming an SD card 4G or smaller). On recent cameras, the ver.req method does not always work - the ACID program in the link I gave you is a better way to get your firmware version.
But to answer your question, use ANSI rather than UTF-8.