Production of capsules and washing powders