Web Features Learning Mode

Setting a HTTP cookie on the client which is not URL-encoded is done how in PHP?