The international color codes for electrical wires are Green/Yellow, Brown/Red and Blue/Black.
Most plugs are supplied with instructions as to where to attach the respective wires. If not, unscrew the outer screws of the plug and take a look inside: on the plastic moulding of the plug, you should also see the letters E (Earth) L (Live) and N (Neutral) to guide you. See the picture above, which shows you the wire positions.
Measure the cable up against the plug to see how much you need to cut to get the right length for the longest wire (E).
Use a thin knife to cut away the outer white casing of the cable to expose the three inner wires. Cut carefully, so that you don’t cut the casings of the inner wires.
Cut 1/2- 1cm of the casing of the earth wire and with your fingers twist the bundle of copper wires inside to make a neat end. With a small screwdriver, loosen the screw for the earth wire, insert the earth wire inside and tighten the screw firmly, making sure that no loose copper threads are left outside.
Measure the length for the live wire and proceed as with the Earth wire. It may be easier for you to remove the fuse while you insert the earth wire. Then it just slots back in again.
Do the same procedure for the neutral wire.
Make one final check to see that all screws are tight and that no stray copper wires are exposed. Then replace the top of the plug and screw back tightly.
Test the appliance by plugging it in and turning on the switch. If nothing happens, open up the plug and check that you have the colours correct; tug gently on the three wires to see that they are properly secured. If they come away with a slight pull, the screw has not been tightened enough.