Daniel was determined. He did not want to be defiled.
If you do not want to be defiled by junk food, fast food, hasish, marijuana, caocain, liquor, pronography or anything you can also decide to be determined as Daniel. The Proverbs 12:11 portion is given from 3 versions of the Bible below.
But Daniel purposed in his heart that he would not defile himself with the portion of the king’s meat, nor with the wine which he drank: therefore he requested of the prince of the eunuchs that he might not defile himself. (version KJV)
But Daniel resolved not to defile himself with the royal food and wine, and he asked the chief official for permission not to defile himself this way. (version NIV)
But Daniel made up his mind that he would not defile (taint, dishonor) himself with the king’s finest food or with the wine which the king drank; so he asked the commander of the officials that he might [be excused so that he would] not defile himself.(version AMP)