Checking encoding